Class TypeSugar
-
- All Implemented Interfaces:
public class TypeSugarResolvableType for Class with Generics with cache, 20 times faster than new ResolvableType, TypeDescriptor
- Since:
2024-06-09
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static TypeDescriptorStringDescriptorpublic final static TypeDescriptorBooleanDescriptorpublic final static TypeDescriptorIntegerDescriptorpublic final static TypeDescriptorLongDescriptorpublic final static TypeDescriptorDoubleDescriptorpublic final static TypeDescriptorFloatDescriptorpublic final static TypeDescriptorBigDecimalDescriptorpublic final static TypeDescriptorLocalDateDescriptorpublic final static TypeDescriptorLocalTimeDescriptorpublic final static TypeDescriptorLocalDateTimeDescriptorpublic final static TypeDescriptorZonedDateTimeDescriptorpublic final static TypeDescriptorOffsetDateTimeDescriptorpublic final static TypeDescriptorZoneIdDescriptor
-
Constructor Summary
Constructors Constructor Description TypeSugar()
-
Method Summary
Modifier and Type Method Description static TypeDescriptordescribe(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)by cache static ResolvableTyperesolve(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)by cache static Typetype(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)by cache static TypeDescriptordescribeNew(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)no cache static ResolvableTyperesolveNew(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)no cache static booleanshorten(@NotNull() Class<out Object> claz)static Stringoutline(@NotNull() ResolvableType type)static Stringoutline(@NotNull() ResolvableType type, boolean shorten)static ResolvableTyperesolve(String structs)static ResolvableTyperesolveNew(String structs)-
-
Method Detail
-
describe
@NotNull() static TypeDescriptor describe(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)
by cache
-
resolve
@NotNull() static ResolvableType resolve(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)
by cache
-
type
@NotNull() static Type type(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)
by cache
-
describeNew
@NotNull() static TypeDescriptor describeNew(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)
no cache
-
resolveNew
@NotNull() static ResolvableType resolveNew(@NotNull() Class<out Object> clazz, Array<Class<out Object>> generics)
no cache
-
resolveNew
@Nullable() static ResolvableType resolveNew(String structs)
-
-
-
-