mockspresso-reflect / com.episode6.hackit.mockspresso.reflect / DependencyKey

DependencyKey

class DependencyKey<V : Any!>

Key used to identify objects and dependencies

Properties

identityAnnotation

val identityAnnotation: Annotation?

typeToken

val typeToken: TypeToken<V>!

Functions

equals

fun equals(other: Any?): Boolean

fromField

static fun fromField(field: Field!): DependencyKey<*>!
static fun fromField(field: Field!, context: TypeToken<*>!): DependencyKey<*>!

hashCode

fun hashCode(): Int

of

static fun <T : Any!> of(clazz: Class<T>!): DependencyKey<T>!
static fun <T : Any!> of(typeToken: TypeToken<T>!): DependencyKey<T>!
static fun <T : Any!> of(clazz: Class<T>!, identityAnnotation: Annotation?): DependencyKey<T>!
static fun <T : Any!> of(typeToken: TypeToken<T>!, identityAnnotation: Annotation?): DependencyKey<T>!

toString

fun toString(): String