org.milyn.javabean
Enum BeanRuntimeInfo.Classification
java.lang.Object
java.lang.Enum<BeanRuntimeInfo.Classification>
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.
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
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.