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
-
Constructor Summary
ConstructorDescriptionClaimPredicate
(ClaimPredicateType discriminant, ClaimPredicate[] andPredicates, ClaimPredicate[] orPredicates, ClaimPredicate notPredicate, Int64 absBefore, Int64 relBefore) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ClaimPredicate
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ClaimPredicate
fromXdrBase64
(String xdr) static ClaimPredicate
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAbsBefore
(Int64 absBefore) void
setAndPredicates
(ClaimPredicate[] andPredicates) void
setDiscriminant
(ClaimPredicateType discriminant) void
setNotPredicate
(ClaimPredicate notPredicate) void
setOrPredicates
(ClaimPredicate[] orPredicates) void
setRelBefore
(Int64 relBefore) toString()
default String
default 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
-