public enum TriadOwner extends java.lang.Enum<TriadOwner>
Modifier and Type | Field and Description |
---|---|
static TriadOwner[] |
OWNER_VALUES |
Modifier and Type | Method and Description |
---|---|
static TriadOwner |
getHashOwner(byte[] hash) |
static TriadOwner |
getHashOwner(java.lang.String value) |
static TriadOwner |
getOwner(long index)
Returns the owner for an index
|
abstract int |
getPrimary() |
abstract int |
getSecondary() |
abstract int |
getTertiary() |
static TriadOwner |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TriadOwner[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TriadOwner A_B
public static final TriadOwner B_C
public static final TriadOwner C_A
public static final TriadOwner A_C
public static final TriadOwner B_A
public static final TriadOwner C_B
public static final TriadOwner[] OWNER_VALUES
public static TriadOwner[] values()
for (TriadOwner c : TriadOwner.values()) System.out.println(c);
public static TriadOwner 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 nullpublic abstract int getPrimary()
public abstract int getSecondary()
public abstract int getTertiary()
public static TriadOwner getOwner(long index)
public static TriadOwner getHashOwner(byte[] hash)
public static TriadOwner getHashOwner(java.lang.String value)