public enum KotlinTypeVariance extends java.lang.Enum<KotlinTypeVariance>
Enum Constant and Description |
---|
IN
The affected type parameter or type is *contravariant*.
|
INVARIANT
The affected type parameter or type is *invariant*, which means it has no variance applied to it.
|
OUT
The affected type parameter or type is *covariant*.
|
Modifier and Type | Method and Description |
---|---|
static KotlinTypeVariance |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KotlinTypeVariance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KotlinTypeVariance INVARIANT
public static final KotlinTypeVariance IN
public static final KotlinTypeVariance OUT
public static KotlinTypeVariance[] values()
for (KotlinTypeVariance c : KotlinTypeVariance.values()) System.out.println(c);
public static KotlinTypeVariance valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null