org.terracotta.toolkit.config
Enum SupportedConfigurationType
java.lang.Object
java.lang.Enum<SupportedConfigurationType>
org.terracotta.toolkit.config.SupportedConfigurationType
- All Implemented Interfaces:
- Serializable, Comparable<SupportedConfigurationType>
public enum SupportedConfigurationType
- extends Enum<SupportedConfigurationType>
INTEGER
public static final SupportedConfigurationType INTEGER
BOOLEAN
public static final SupportedConfigurationType BOOLEAN
STRING
public static final SupportedConfigurationType STRING
LONG
public static final SupportedConfigurationType LONG
values
public static SupportedConfigurationType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SupportedConfigurationType c : SupportedConfigurationType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SupportedConfigurationType valueOf(String name)
- 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.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getTypeForObject
public static SupportedConfigurationType getTypeForObject(Object obj)
- Returns the corresponding
SupportedConfigurationType
for the object or throws exception if not supported
isTypeSupported
public static boolean isTypeSupported(Object obj)
- Returns the corresponding
SupportedConfigurationType
for the object or returns null if not supported
getTypeForObjectOrNull
public static SupportedConfigurationType getTypeForObjectOrNull(Object obj)
getFromConfig
public abstract <T> Serializable getFromConfig(Configuration config,
String name)
isSupported
public boolean isSupported(SupportedConfigurationType other)
Copyright © 2014 Terracotta, Inc.. All Rights Reserved.