BindGenericAs

How generic types are bound when using multibinding such as AutoBindIntoSet or AutoBindIntoMap.

The default is ExactType unless the bound type is annotated with Default in which case that is used as the default.

Since

1.0.0

Entries

Link copied to clipboard

Only the exact supertype is bound. For example, if the type is List<String> then only List<String> is bound.

Link copied to clipboard

The type is bound as a wildcard type. For example, if the type is List<String> then it's bound as List<*>.

Link copied to clipboard

The type is bound as the exact supertype and as a wildcard type. For example, if the type is List<String> then it's bound as both List<String> and List<*>.

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Default(val value: BindGenericAs)

Specifies the default AutoBindIntoSet.bindGenericAs and AutoBindIntoMap.bindGenericAs for the annotated type.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.