public static enum SearchContext.Lifetime extends java.lang.Enum<SearchContext.Lifetime>
| Enum Constant and Description |
|---|
COLLECTION
This life time is for objects that only live during collection time.
|
CONTEXT
This life time is for objects that need to live until the search context they are attached to is destroyed.
|
PHASE
This life time is for objects that need to live until the end of the current search phase.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchContext.Lifetime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SearchContext.Lifetime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchContext.Lifetime COLLECTION
public static final SearchContext.Lifetime PHASE
public static final SearchContext.Lifetime CONTEXT
public static SearchContext.Lifetime[] values()
for (SearchContext.Lifetime c : SearchContext.Lifetime.values()) System.out.println(c);
public static SearchContext.Lifetime valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null