Package org.xrpl.xrpl4j.model.flags
Class Flags
java.lang.Object
org.xrpl.xrpl4j.model.flags.Flags
- Direct Known Subclasses:
AccountRootFlags,CredentialFlags,MpTokenFlags,MpTokenIssuanceFlags,NfTokenFlags,NfTokenOfferFlags,OfferFlags,RippleStateFlags,SignerListFlags,TransactionFlags
A wrapper around a long value containing various XRPL Transaction Flags.
- See Also:
-
Field Summary
Fields -
Method Summary
-
Field Details
-
UNSET
Constant for an unset flag.
-
-
Method Details
-
of
ConstructFlagsfor the given value.- Parameters:
value- A long flags value.- Returns:
- A new
Flags.
-
of
-
getValue
public long getValue()Get the underlying value of thisFlags.- Returns:
- The underlying
longvalue of thisFlags.
-
isEmpty
public boolean isEmpty()Returns whether theseTransactionFlagsare empty.- Returns:
trueif these flags are empty, otherwisefalse.
-
isSet
Determines if a specific transaction flag is set by performing a bitwise AND on thisFlagsand theFlagsin question, and checking if the result of that operation is equal to the given flag.- Parameters:
flag- TheFlagsthat this method determines is set or not.- Returns:
- true if the flag is set, false if not.
-
equals
-
hashCode
public int hashCode() -
toString
-