Index

A B C D E F G I J L O P Q R S T U W Z 
All Classes and Interfaces|All Packages

A

allowUnregistered() - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
Not recommended.
AnonymousAllowUnregisteredEnumTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory
 

B

BinaryGsonCodec<T> - Class in io.datarouter.gson.codec
Create a single object that can convert a single class to and from byte-array encoded json.
BinaryGsonCodec(Gson, Class<T>) - Constructor for class io.datarouter.gson.codec.BinaryGsonCodec
 
builder(EnumTypeAdapterFactory) - Static method in class io.datarouter.gson.GsonTool
 
builderWithoutEnums() - Static method in class io.datarouter.gson.GsonTool
This can be used if you don't expect to serialize any enums and would like an error if an enum is found

C

CompatibleDateTypeAdapter - Class in io.datarouter.gson.typeadapter
 
CompatibleDateTypeAdapter() - Constructor for class io.datarouter.gson.typeadapter.CompatibleDateTypeAdapter
 
create(Gson, TypeToken<T>) - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
create(Gson, TypeToken<T>) - Method in class io.datarouter.gson.typeadapterfactory.OptionalContainerClassTypeAdapterFactory
 
create(Gson, TypeToken<T>) - Method in class io.datarouter.gson.typeadapterfactory.OptionalLegacyTypeAdapterFactory
 
create(Gson, TypeToken<T>) - Method in class io.datarouter.gson.typeadapterfactory.OptionalTypeAdapterFactory
 

D

decode(byte[]) - Method in class io.datarouter.gson.codec.BinaryGsonCodec
 
decode(String) - Method in class io.datarouter.gson.codec.GsonCodec
 
DEFAULT - Static variable in class io.datarouter.gson.GsonJsonSerializer
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.DurationLegacyTypeAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.InstantLegacyTypeAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.IntegerMappedEnumSerializer
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.IsoDateGsonAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.LocalDateLegacyTypeAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.LocalDateTimeLegacyTypeAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.LocalTimeLegacyTypeAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.datarouter.gson.serializer.UlidTypeAdapter
 
deserialize(String, Type) - Method in class io.datarouter.gson.GsonJsonSerializer
 
DurationLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
DurationLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.DurationLegacyTypeAdapter
 

E

encode(T) - Method in class io.datarouter.gson.codec.BinaryGsonCodec
 
encode(T) - Method in class io.datarouter.gson.codec.GsonCodec
 
EnumTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
Intercepts all enum serialization, preventing accidental serialization of enums without explicitly specifying an encoding.
EnumTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
This can be used to intercept and log unregistered enums, however when multiple of these exist, the logs will not differentiate between them.
EnumTypeAdapterFactory.RejectAllEnumTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
 

F

forLogs() - Static method in class io.datarouter.gson.GsonTool
Quick solution for printing a value that is not parsed by another system.
forLogsPretty() - Static method in class io.datarouter.gson.GsonTool
Quick solution for pretty-printing a value that is not parsed by another system.
fromJson(String, Type) - Method in class io.datarouter.gson.GsonJsonSerializer
 

G

getDeclaredFieldsIncludingAncestors(Class<?>) - Static method in class io.datarouter.gson.GsonReflectionTool
This will return a list of all the fields declared in the given class and in its super types.
GSON - Static variable in class io.datarouter.gson.GsonTool
 
GsonCodec<T> - Class in io.datarouter.gson.codec
Create a single object that can convert a single class to and from json.
GsonCodec(Gson, Class<T>) - Constructor for class io.datarouter.gson.codec.GsonCodec
 
GsonJsonSerializer - Class in io.datarouter.gson
 
GsonJsonSerializer(Gson) - Constructor for class io.datarouter.gson.GsonJsonSerializer
 
GsonReflectionTool - Class in io.datarouter.gson
 
GsonReflectionTool() - Constructor for class io.datarouter.gson.GsonReflectionTool
 
GsonTool - Class in io.datarouter.gson
 
GsonTool() - Constructor for class io.datarouter.gson.GsonTool
 

I

INSTANCE - Static variable in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory
 
INSTANCE - Static variable in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory.RejectAllEnumTypeAdapterFactory
 
InstantLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
InstantLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.InstantLegacyTypeAdapter
 
InstantTypeAdapter - Class in io.datarouter.gson.typeadapter
 
InstantTypeAdapter() - Constructor for class io.datarouter.gson.typeadapter.InstantTypeAdapter
 
IntegerMappedEnumSerializer<T extends Enum<T>> - Class in io.datarouter.gson.serializer
 
io.datarouter.gson - package io.datarouter.gson
 
io.datarouter.gson.codec - package io.datarouter.gson.codec
 
io.datarouter.gson.serializer - package io.datarouter.gson.serializer
 
io.datarouter.gson.typeadapter - package io.datarouter.gson.typeadapter
 
io.datarouter.gson.typeadapterfactory - package io.datarouter.gson.typeadapterfactory
 
IsoDateGsonAdapter - Class in io.datarouter.gson.serializer
 
IsoDateGsonAdapter() - Constructor for class io.datarouter.gson.serializer.IsoDateGsonAdapter
 

J

Java8DateTypeAdapter - Class in io.datarouter.gson.typeadapter
Deprecated.
Java8DateTypeAdapter() - Constructor for class io.datarouter.gson.typeadapter.Java8DateTypeAdapter
Deprecated.
 

L

LocalDateLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
LocalDateLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.LocalDateLegacyTypeAdapter
 
LocalDateTimeLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
LocalDateTimeLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.LocalDateTimeLegacyTypeAdapter
 
LocalTimeLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
LocalTimeLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.LocalTimeLegacyTypeAdapter
 

O

optional(MappedEnum<T, Integer>, T) - Static method in class io.datarouter.gson.serializer.IntegerMappedEnumSerializer
When deserializing, return the replacement if the value is not found.
optional(MappedEnum<T, String>, T) - Static method in class io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
When deserializing, return the replacement if the value is not found.
OptionalContainerClassTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
This factory creates an adaptor that correctly serialize Dtos that contain non static Optionals.
OptionalContainerClassTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.OptionalContainerClassTypeAdapterFactory
 
OptionalContainerSerializer - Class in io.datarouter.gson
 
OptionalContainerSerializer() - Constructor for class io.datarouter.gson.OptionalContainerSerializer
 
OptionalLegacyTypeAdapter(Gson, TypeToken<Optional<E>>) - Constructor for class io.datarouter.gson.typeadapterfactory.OptionalLegacyTypeAdapterFactory.OptionalLegacyTypeAdapter
 
OptionalLegacyTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
 
OptionalLegacyTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.OptionalLegacyTypeAdapterFactory
 
OptionalLegacyTypeAdapterFactory.OptionalLegacyTypeAdapter<E> - Class in io.datarouter.gson.typeadapterfactory
 
OptionalTypeAdapterFactory - Class in io.datarouter.gson.typeadapterfactory
This factory creates an adaptor that correctly serialize Optionals.
OptionalTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.OptionalTypeAdapterFactory
 
optionalWithLogging(MappedEnum<T, Integer>, T) - Static method in class io.datarouter.gson.serializer.IntegerMappedEnumSerializer
When deserializing, return the replacement if the value is not found.
optionalWithLogging(MappedEnum<T, String>, T) - Static method in class io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
When deserializing, return the replacement if the value is not found.

P

prettyPrint(String) - Static method in class io.datarouter.gson.GsonTool
 
processOptionalFields(T, JsonElement) - Method in class io.datarouter.gson.typeadapterfactory.OptionalContainerClassTypeAdapterFactory
 

Q

QuadTypeAdapter - Class in io.datarouter.gson.typeadapter
 
QuadTypeAdapter() - Constructor for class io.datarouter.gson.typeadapter.QuadTypeAdapter
 

R

read(JsonReader) - Method in class io.datarouter.gson.typeadapter.CompatibleDateTypeAdapter
 
read(JsonReader) - Method in class io.datarouter.gson.typeadapter.InstantTypeAdapter
 
read(JsonReader) - Method in class io.datarouter.gson.typeadapter.Java8DateTypeAdapter
Deprecated.
 
read(JsonReader) - Method in class io.datarouter.gson.typeadapter.QuadTypeAdapter
 
read(JsonReader) - Method in class io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
 
read(JsonReader) - Method in class io.datarouter.gson.typeadapterfactory.OptionalLegacyTypeAdapterFactory.OptionalLegacyTypeAdapter
 
register(Class<T>, TypeAdapter<T>) - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
registerStringMappedEnumOptional(MappedEnum<T, String>, T) - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
registerStringMappedEnumOptionalWithLogging(MappedEnum<T, String>, T) - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
registerStringMappedEnumRequired(MappedEnum<T, String>) - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
 
RejectAllEnumTypeAdapterFactory() - Constructor for class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory.RejectAllEnumTypeAdapterFactory
 
required(MappedEnum<T, Integer>) - Static method in class io.datarouter.gson.serializer.IntegerMappedEnumSerializer
When deserializing, throw an exception if the value is not found.
required(MappedEnum<T, String>) - Static method in class io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
When deserializing, throw an exception if the value is not found.

S

serialize(Ulid, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.UlidTypeAdapter
 
serialize(Object) - Method in class io.datarouter.gson.GsonJsonSerializer
 
serialize(Duration, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.DurationLegacyTypeAdapter
 
serialize(Instant, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.InstantLegacyTypeAdapter
 
serialize(LocalDate, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.LocalDateLegacyTypeAdapter
 
serialize(LocalDateTime, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.LocalDateTimeLegacyTypeAdapter
 
serialize(LocalTime, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.LocalTimeLegacyTypeAdapter
 
serialize(ZoneId, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.ZoneIdLegacyTypeAdapter
 
serialize(Date, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.IsoDateGsonAdapter
 
serialize(T, Type, JsonSerializationContext) - Method in class io.datarouter.gson.serializer.IntegerMappedEnumSerializer
 
StringMappedEnumTypeAdapter<T extends Enum<T>> - Class in io.datarouter.gson.typeadapter
 
suppressUnregisteredLogging() - Method in class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
Not recommended.

T

toJson(Object) - Method in class io.datarouter.gson.GsonJsonSerializer
 

U

UlidTypeAdapter - Class in io.datarouter.gson.serializer
 
UlidTypeAdapter() - Constructor for class io.datarouter.gson.serializer.UlidTypeAdapter
 

W

withoutEnums() - Static method in class io.datarouter.gson.GsonTool
 
withUnregisteredEnums() - Static method in class io.datarouter.gson.GsonTool
Deprecated.
This is for a quick check to see if any enums are being serialized. If so it should be replaced with a dedicated subclass of EnumTypeAdapterFactory. If not it should be replaced with GsonTool.withoutEnums().
write(JsonWriter, Quad) - Method in class io.datarouter.gson.typeadapter.QuadTypeAdapter
 
write(JsonWriter, Instant) - Method in class io.datarouter.gson.typeadapter.InstantTypeAdapter
 
write(JsonWriter, Date) - Method in class io.datarouter.gson.typeadapter.CompatibleDateTypeAdapter
 
write(JsonWriter, Date) - Method in class io.datarouter.gson.typeadapter.Java8DateTypeAdapter
Deprecated.
 
write(JsonWriter, Optional<E>) - Method in class io.datarouter.gson.typeadapterfactory.OptionalLegacyTypeAdapterFactory.OptionalLegacyTypeAdapter
 
write(JsonWriter, T) - Method in class io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
 

Z

ZoneIdLegacyTypeAdapter - Class in io.datarouter.gson.serializer
 
ZoneIdLegacyTypeAdapter() - Constructor for class io.datarouter.gson.serializer.ZoneIdLegacyTypeAdapter
 
A B C D E F G I J L O P Q R S T U W Z 
All Classes and Interfaces|All Packages