org.terracotta.toolkit.config
Enum SupportedConfigurationType

java.lang.Object
  extended by java.lang.Enum<SupportedConfigurationType>
      extended by org.terracotta.toolkit.config.SupportedConfigurationType
All Implemented Interfaces:
Serializable, Comparable<SupportedConfigurationType>

public enum SupportedConfigurationType
extends Enum<SupportedConfigurationType>


Enum Constant Summary
BOOLEAN
           
INTEGER
           
LONG
           
STRING
           
 
Method Summary
abstract
<T> Serializable
getFromConfig(Configuration config, String name)
           
static SupportedConfigurationType getTypeForObject(Object obj)
          Returns the corresponding SupportedConfigurationType for the object or throws exception if not supported
static SupportedConfigurationType getTypeForObjectOrNull(Object obj)
           
 boolean isSupported(SupportedConfigurationType other)
           
static boolean isTypeSupported(Object obj)
          Returns the corresponding SupportedConfigurationType for the object or returns null if not supported
static SupportedConfigurationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SupportedConfigurationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTEGER

public static final SupportedConfigurationType INTEGER

BOOLEAN

public static final SupportedConfigurationType BOOLEAN

STRING

public static final SupportedConfigurationType STRING

LONG

public static final SupportedConfigurationType LONG
Method Detail

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.