public enum IteratorScope extends Enum<IteratorScope>
Enum Constant and Description |
---|
CURRENT
Indicates that the iterator will process entries currently in the space,
and ignores future changes.
|
CURRENT_AND_FUTURE
Indicates that the iterator will process both entries currently in
the space and future changes.
|
FUTURE
Indicates that the iterator will ignore entries currently in the space,
and process future changes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasCurrent() |
boolean |
hasFuture() |
static IteratorScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IteratorScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IteratorScope CURRENT
public static final IteratorScope FUTURE
public static final IteratorScope CURRENT_AND_FUTURE
public static IteratorScope[] values()
for (IteratorScope c : IteratorScope.values()) System.out.println(c);
public static IteratorScope 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 hasCurrent()
true if the value is CURRENT
or CURRENT_AND_FUTURE
,
false
otherwise.
public boolean hasFuture()
FUTURE
or CURRENT_AND_FUTURE
,
false otherwise.Copyright © GigaSpaces.