org.milyn.javabean
Enum BeanRuntimeInfo.Classification

java.lang.Object
  extended by java.lang.Enum<BeanRuntimeInfo.Classification>
      extended by org.milyn.javabean.BeanRuntimeInfo.Classification
All Implemented Interfaces:
Serializable, Comparable<BeanRuntimeInfo.Classification>
Enclosing class:
BeanRuntimeInfo

public static enum BeanRuntimeInfo.Classification
extends Enum<BeanRuntimeInfo.Classification>

Bean type classification.

We maintain this classification enum because it helps us avoid performing instanceof checks, which are cheap when the instance being checked is an instanceof, but expensive if it's not.


Enum Constant Summary
ARRAY_COLLECTION
           
COLLECTION_COLLECTION
           
MAP_COLLECTION
           
NON_COLLECTION
           
 
Method Summary
static BeanRuntimeInfo.Classification valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BeanRuntimeInfo.Classification[] 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

NON_COLLECTION

public static final BeanRuntimeInfo.Classification NON_COLLECTION

ARRAY_COLLECTION

public static final BeanRuntimeInfo.Classification ARRAY_COLLECTION

COLLECTION_COLLECTION

public static final BeanRuntimeInfo.Classification COLLECTION_COLLECTION

MAP_COLLECTION

public static final BeanRuntimeInfo.Classification MAP_COLLECTION
Method Detail

values

public static BeanRuntimeInfo.Classification[] 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 (BeanRuntimeInfo.Classification c : BeanRuntimeInfo.Classification.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BeanRuntimeInfo.Classification 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


Copyright © 2018. All rights reserved.