public static enum Chain.PieceErrorCode extends java.lang.Enum<Chain.PieceErrorCode> implements Chain.IErrorCode
| Enum Constant and Description |
|---|
INTERRUPT |
LOCK_FAMILY |
LOCK_OFFER |
LOCK_OTHER |
LOOPABLE |
| Modifier and Type | Method and Description |
|---|---|
PathType |
getPathTypeLocked() |
boolean |
isInterrupted() |
boolean |
isLocked() |
static Chain.PieceErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Chain.PieceErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Chain.PieceErrorCode LOOPABLE
public static final Chain.PieceErrorCode INTERRUPT
public static final Chain.PieceErrorCode LOCK_OFFER
public static final Chain.PieceErrorCode LOCK_FAMILY
public static final Chain.PieceErrorCode LOCK_OTHER
public static Chain.PieceErrorCode[] values()
for (Chain.PieceErrorCode c : Chain.PieceErrorCode.values()) System.out.println(c);
public static Chain.PieceErrorCode 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 boolean isLocked()
isLocked in interface Chain.IErrorCodepublic boolean isInterrupted()
isInterrupted in interface Chain.IErrorCodepublic PathType getPathTypeLocked()
getPathTypeLocked in interface Chain.IErrorCode