Util
class Util
Content copied to clipboard
Types
Generic Array Type Impl
Link copied to clipboard
Parameterized Type Impl
Link copied to clipboard
Wildcard Type Impl
Link copied to clipboard
The WildcardType interface supports multiple upper bounds and multiple lower bounds.
Functions
box If Primitive
Link copied to clipboard
canonicalize
Link copied to clipboard
Returns a type that is functionally equal but not necessarily equal according to Object.equals().
generated Adapter
Link copied to clipboard
open fun generatedAdapter(moshi: Moshi, type: Type, rawType: Class<out Any>): JsonAdapter<out Any>
Content copied to clipboard
Loads the generated JsonAdapter for classes annotated JsonClass.
get Generic Supertype
Link copied to clipboard
has Nullable
Link copied to clipboard
Returns true if
annotations has any annotation whose simple name is Nullable.is Annotation Present
Link copied to clipboard
open fun isAnnotationPresent(annotations: Set<out Annotation>, annotationClass: Class<out Annotation>): Boolean
Content copied to clipboard
is Platform Type
Link copied to clipboard
Returns true if
rawType is built in.json Annotations
Link copied to clipboard
open fun jsonAnnotations(annotations: Array<Annotation>): Set<out Annotation>
Content copied to clipboard
open fun jsonAnnotations(annotatedElement: AnnotatedElement): Set<out Annotation>
Content copied to clipboard
lookup Defaults Constructor
Link copied to clipboard
open fun <T> lookupDefaultsConstructor(targetClass: Class<T>): Constructor<T>
Content copied to clipboard
Reflectively looks up the defaults constructor of a kotlin class.
missing Property
Link copied to clipboard
open fun missingProperty(propertyName: String, jsonName: String, reader: JsonReader): JsonDataException
Content copied to clipboard
remove Subtype Wildcard
Link copied to clipboard
If type is a "?
rethrow Cause
Link copied to clipboard
Throws the cause of
e, wrapping it if it is checked.type Annotated With Annotations
Link copied to clipboard
open fun typeAnnotatedWithAnnotations(type: Type, annotations: Set<out Annotation>): String
Content copied to clipboard
types Match
Link copied to clipboard
unexpected Null
Link copied to clipboard
open fun unexpectedNull(propertyName: String, jsonName: String, reader: JsonReader): JsonDataException
Content copied to clipboard
Properties
DEFAULT_CONSTRUCTOR_MARKER
Link copied to clipboard
EMPTY_TYPE_ARRAY
Link copied to clipboard
NO_ANNOTATIONS
Link copied to clipboard