public enum ItemState extends Enum<ItemState>
Enum Constant and Description |
---|
INVALID
Item is not found in this node, or may be stale.
|
OWNED
Item is owned by this node.
|
SHARED
Item is shared by this node, but is owned by another.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLessThan(ItemState other) |
static ItemState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemState INVALID
public static final ItemState SHARED
public static final ItemState OWNED
public static ItemState[] values()
for (ItemState c : ItemState.values()) System.out.println(c);
public static ItemState 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 isLessThan(ItemState other)