public enum ExtensionResourceType extends Enum<ExtensionResourceType>
SphereEnumeration
it was added to add tye safety while the developer points to a resource, while extending it.Modifier and Type | Method and Description |
---|---|
static ExtensionResourceType |
forValue(String value) |
String |
toValue() |
static ExtensionResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtensionResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtensionResourceType CART
public static final ExtensionResourceType PAYMENT
public static final ExtensionResourceType CUSTOMER
public static final ExtensionResourceType ORDER
public static ExtensionResourceType[] values()
for (ExtensionResourceType c : ExtensionResourceType.values()) System.out.println(c);
public static ExtensionResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ExtensionResourceType forValue(String value)
public String toValue()