Package org.stellar.sdk.xdr
Class ClaimPredicate
java.lang.Object
org.stellar.sdk.xdr.ClaimPredicate
ClaimPredicate's original definition in the XDR file is:
union ClaimPredicate switch (ClaimPredicateType type)
{
case CLAIM_PREDICATE_UNCONDITIONAL:
void;
case CLAIM_PREDICATE_AND:
ClaimPredicate andPredicates<2>;
case CLAIM_PREDICATE_OR:
ClaimPredicate orPredicates<2>;
case CLAIM_PREDICATE_NOT:
ClaimPredicate* notPredicate;
case CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME:
int64 absBefore; // Predicate will be true if closeTime < absBefore
case CLAIM_PREDICATE_BEFORE_RELATIVE_TIME:
int64 relBefore; // Seconds since closeTime of the ledger in which the
// ClaimableBalanceEntry was created
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClaimPredicate(ClaimPredicateType discriminant, ClaimPredicate[] andPredicates, ClaimPredicate[] orPredicates, ClaimPredicate notPredicate, Int64 absBefore, Int64 relBefore) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ClaimPredicatedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimPredicatefromXdrBase64(String xdr) static ClaimPredicatefromXdrByteArray(byte[] xdr) inthashCode()voidsetAbsBefore(Int64 absBefore) voidsetAndPredicates(ClaimPredicate[] andPredicates) voidsetDiscriminant(ClaimPredicateType discriminant) voidsetNotPredicate(ClaimPredicate notPredicate) voidsetOrPredicates(ClaimPredicate[] orPredicates) voidsetRelBefore(Int64 relBefore) toString()default Stringdefault byte[]
-
Constructor Details
-
ClaimPredicate
public ClaimPredicate() -
ClaimPredicate
public ClaimPredicate(ClaimPredicateType discriminant, ClaimPredicate[] andPredicates, ClaimPredicate[] orPredicates, ClaimPredicate notPredicate, Int64 absBefore, Int64 relBefore)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAndPredicates
-
getOrPredicates
-
getNotPredicate
-
getAbsBefore
-
getRelBefore
-
setDiscriminant
-
setAndPredicates
-
setOrPredicates
-
setNotPredicate
-
setAbsBefore
-
setRelBefore
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-