public enum TransactionSubjects extends java.lang.Enum<TransactionSubjects>
| Enum Constant and Description |
|---|
BOTH
Reference to both from and to subjects of the transaction
|
FROM
Reference to the transaction from
|
NONE
Reference to none of the transaction subjects
|
TO
Reference to the transaction to
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFrom()
Returns whether the from subject is referenced
|
boolean |
isTo()
Returns whether the to subject is referenced
|
static TransactionSubjects |
of(boolean from,
boolean to) |
static TransactionSubjects |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionSubjects[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionSubjects NONE
public static final TransactionSubjects FROM
public static final TransactionSubjects TO
public static final TransactionSubjects BOTH
public static TransactionSubjects[] values()
for (TransactionSubjects c : TransactionSubjects.values()) System.out.println(c);
public static TransactionSubjects 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 static TransactionSubjects of(boolean from, boolean to)
public boolean isFrom()
public boolean isTo()