Package org.stellar.sdk.xdr
Class Claimant
java.lang.Object
org.stellar.sdk.xdr.Claimant
- All Implemented Interfaces:
XdrElement
Claimant's original definition in the XDR file is:
union Claimant switch (ClaimantType type)
{
case CLAIMANT_TYPE_V0:
struct
{
AccountID destination; // The account that can use this condition
ClaimPredicate predicate; // Claimable if predicate is true
} v0;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classClaimantV0's original definition in the XDR file is: -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Claimant.ClaimantBuilderbuilder()static Claimantdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimantfromXdrBase64(String xdr) static ClaimantfromXdrByteArray(byte[] xdr) getV0()inthashCode()voidsetDiscriminant(ClaimantType discriminant) voidtoString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
Claimant
public Claimant() -
Claimant
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getV0
-
setDiscriminant
-
setV0
-
equals
-
hashCode
public int hashCode() -
toString
-