Package com.google.cloud
Class StringEnumType<EnumT>
java.lang.Object
com.google.cloud.StringEnumType<EnumT>
This represents a concept having a known set of acceptable String values, which can expand later
due to new API features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAndRegister(String constant) Create a new constant and register it in the known values.Get the enum object for the given String constant, and allow unrecognized values.valueOfStrict(String constant) Get the enum object for the given String constant, and throw an exception if the constant is not recognized.EnumT[]values()Return the known values of this enum type.
-
Constructor Details
-
StringEnumType
-
-
Method Details
-
createAndRegister
Create a new constant and register it in the known values. -
valueOfStrict
Get the enum object for the given String constant, and throw an exception if the constant is not recognized. -
valueOf
Get the enum object for the given String constant, and allow unrecognized values. -
values
Return the known values of this enum type.
-