Util
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The WildcardType interface supports multiple upper bounds and multiple lower bounds.
Functions
Link copied to clipboard
Link copied to clipboard
Returns a type that is functionally equal but not necessarily equal according to Object.equals().
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.
Link copied to clipboard
Link copied to clipboard
Returns true if
annotations has any annotation whose simple name is Nullable.Link copied to clipboard
open fun isAnnotationPresent(annotations: Set<out Annotation>, annotationClass: Class<out Annotation>): Boolean
Content copied to clipboard
Link copied to clipboard
Returns true if
rawType is built in.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
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.
Link copied to clipboard
open fun missingProperty( propertyName: String, jsonName: String, reader: JsonReader): JsonDataException
Content copied to clipboard
Link copied to clipboard
If type is a "?
Link copied to clipboard
Throws the cause of
e, wrapping it if it is checked.Link copied to clipboard
open fun typeAnnotatedWithAnnotations(type: Type, annotations: Set<out Annotation>): String
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun unexpectedNull( propertyName: String, jsonName: String, reader: JsonReader): JsonDataException
Content copied to clipboard