public enum IdentityScheme extends Enum<IdentityScheme>
| Enum Constant and Description |
|---|
ByIdentity
A node is identified by its Java object identity,
so two nodes are considered to be the same node if they are actually the same Java object.
|
ByKey
A node is identified by its key (
getKey()),
so two nodes are considered to be the same node if they have the key. |
ByText
A node is identified by the text that is being displayed for it (
getText()),
so two nodes are considered to be the same node if they have the same text. |
| Modifier and Type | Method and Description |
|---|---|
static IdentityScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentityScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentityScheme ByIdentity
public static final IdentityScheme ByKey
getKey()),
so two nodes are considered to be the same node if they have the key.public static final IdentityScheme ByText
getText()),
so two nodes are considered to be the same node if they have the same text.public static IdentityScheme 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 static IdentityScheme[] values()
for (IdentityScheme c : IdentityScheme.values()) System.out.println(c);