public static enum BeanRuntimeInfo.Classification extends Enum<BeanRuntimeInfo.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 and Description |
---|
ARRAY_COLLECTION |
COLLECTION_COLLECTION |
MAP_COLLECTION |
NON_COLLECTION |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final BeanRuntimeInfo.Classification NON_COLLECTION
public static final BeanRuntimeInfo.Classification ARRAY_COLLECTION
public static final BeanRuntimeInfo.Classification COLLECTION_COLLECTION
public static final BeanRuntimeInfo.Classification MAP_COLLECTION
public static BeanRuntimeInfo.Classification[] values()
for (BeanRuntimeInfo.Classification c : BeanRuntimeInfo.Classification.values()) System.out.println(c);
public static BeanRuntimeInfo.Classification 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 nullCopyright © 2020. All rights reserved.