add TypeAdapter

This commit is contained in:
tursom 2020-08-11 01:02:10 +08:00
parent e3c117f126
commit 50c21ca8d3
22 changed files with 48 additions and 0 deletions

View File

@ -64,4 +64,10 @@ object TypeAdapterFactory {
} }
return null return null
} }
override fun toString() = adapterMap.toString()
}
fun main() {
println(TypeAdapterFactory)
} }

View File

@ -15,4 +15,6 @@ object BooleanAdapter : TypeAdapter<Boolean> {
null null
} }
} }
override fun toString() = "BooleanAdapter"
} }

View File

@ -15,4 +15,6 @@ object BytesAdapter : TypeAdapter<ByteArray> {
null null
} }
} }
override fun toString() = "BytesAdapter"
} }

View File

@ -16,4 +16,6 @@ object DateAdapter : TypeAdapter<Date> {
null null
} }
} }
override fun toString() = "DateAdapter"
} }

View File

@ -15,4 +15,6 @@ object DoubleAdapter : TypeAdapter<Double> {
null null
} }
} }
override fun toString() = "DoubleAdapter"
} }

View File

@ -22,4 +22,6 @@ object EnumAdapter : TypeAdapter<EnumAdapter.EnumType> {
} }
} }
override fun toString() = "EnumAdapter"
} }

View File

@ -15,4 +15,6 @@ object FloatAdapter : TypeAdapter<Float> {
null null
} }
} }
override fun toString() = "FloatAdapter"
} }

View File

@ -16,4 +16,6 @@ object InstantAdapter : TypeAdapter<Instant> {
null null
} }
} }
override fun toString() = "InstantAdapter"
} }

View File

@ -15,4 +15,6 @@ object IntAdapter : TypeAdapter<Int> {
null null
} }
} }
override fun toString() = "IntAdapter"
} }

View File

@ -16,4 +16,6 @@ object IntAdapterAdapter : TypeAdapter<BigDecimal> {
null null
} }
} }
override fun toString() = "IntAdapterAdapter"
} }

View File

@ -18,4 +18,6 @@ object JsonAdapter : TypeAdapter<Int> {
null null
} }
} }
override fun toString() = "JsonAdapter"
} }

View File

@ -16,4 +16,6 @@ object LocalDateAdapter : TypeAdapter<LocalDate> {
null null
} }
} }
override fun toString() = "LocalDateAdapter"
} }

View File

@ -16,4 +16,6 @@ object LocalDateTimeAdapter : TypeAdapter<LocalDateTime> {
null null
} }
} }
override fun toString() = "LocalDateTimeAdapter"
} }

View File

@ -16,4 +16,6 @@ object LocalTimeAdapter : TypeAdapter<LocalTime> {
null null
} }
} }
override fun toString() = "LocalTimeAdapter"
} }

View File

@ -15,4 +15,6 @@ object LongAdapter : TypeAdapter<Long> {
null null
} }
} }
override fun toString() = "LongAdapter"
} }

View File

@ -16,4 +16,6 @@ object MonthDayAdapter : TypeAdapter<MonthDay> {
null null
} }
} }
override fun toString() = "MonthDayAdapter"
} }

View File

@ -15,4 +15,6 @@ object StringAdapter : TypeAdapter<String> {
null null
} }
} }
override fun toString() = "StringAdapter"
} }

View File

@ -16,4 +16,6 @@ object TimeAdapter : TypeAdapter<Time> {
null null
} }
} }
override fun toString() = "TimeAdapter"
} }

View File

@ -16,4 +16,6 @@ object TimestampAdapter : TypeAdapter<Timestamp> {
null null
} }
} }
override fun toString() = "TimestampAdapter"
} }

View File

@ -16,4 +16,6 @@ object UUIDAdapter : TypeAdapter<UUID> {
null null
} }
} }
override fun toString() = "UUIDAdapter"
} }

View File

@ -16,4 +16,6 @@ object YearAdapter : TypeAdapter<Year> {
null null
} }
} }
override fun toString() = "YearAdapter"
} }

View File

@ -16,4 +16,6 @@ object YearMonthAdapter : TypeAdapter<YearMonth> {
null null
} }
} }
override fun toString() = "YearMonthAdapter"
} }