Types

object Types

The full types of the generated factories' dependencies, built without reflection: the compiler writes a parameterized parameter type as parameterized of its class and its type arguments, so Dependencies can tell StateViewCache<OrderStateView> from StateViewCache<PaymentStateView>. The types equal the JDK's of the same declaration, as ParameterizedType and WildcardType specify, so a host's container matches them.

Functions

Link copied to clipboard

type as Kotlin writes it: me.ahoo.StateViewCache<me.ahoo.OrderStateView>.

Link copied to clipboard
fun parameterized(raw: Class<*>, vararg arguments: Type): ParameterizedType

raw of arguments: StateViewCache<OrderStateView>.

Link copied to clipboard
fun rawOf(type: Type): Class<*>

The class of type: itself for a class, its raw class for a parameterized one, Object for any other.

Link copied to clipboard

? extends [upper], a covariant argument (out T); ? (a star projection) when upper is Object.

Link copied to clipboard

? super [lower], a contravariant argument (in T).

Link copied to clipboard

?, a star projection.