Package com.google.devtools.ksp.symbol
Enum Variance
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STARINVARIANTCOVARIANTCONTRAVARIANT
-
Method Summary
Modifier and Type Method Description final VariancevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<Variance>values()Returns an array containing the constants of this enum type, in the order they're declared. final StringgetLabel()final EnumEntries<Variance>getEntries()Represents both declaration-site and use-site variance. -
-
Method Detail
-
valueOf
final Variance valueOf(String value)
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.)
-
values
final Array<Variance> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<Variance> getEntries()
Represents both declaration-site and use-site variance. STAR is only used and valid in use-site variance, while others can be used in both.
-
-
-
-