public enum BeanCollectionUsage extends Enum<BeanCollectionUsage>
Enum Constant and Description |
---|
CLEAR
Call clear on the target collection if it exists; construct if not.
|
CONSTRUCT
Always reconstruct the target collection
|
REUSE
Reuse the target collection if it exists; construct if not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
mustClear() |
boolean |
mustConstruct(Object targetCollection) |
static BeanCollectionUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeanCollectionUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeanCollectionUsage CONSTRUCT
public static final BeanCollectionUsage REUSE
public static final BeanCollectionUsage CLEAR
public static BeanCollectionUsage[] values()
for (BeanCollectionUsage c : BeanCollectionUsage.values()) System.out.println(c);
public static BeanCollectionUsage 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 nullpublic boolean mustClear()
public boolean mustConstruct(Object targetCollection)
Copyright © 2015–2017 42 BV. All rights reserved.