Package org.stellar.sdk.xdr
Class ArchivalProof.ArchivalProofBody
java.lang.Object
org.stellar.sdk.xdr.ArchivalProof.ArchivalProofBody
- Enclosing class:
ArchivalProof
ArchivalProofBody's original definition in the XDR file is:
union switch (ArchivalProofType t)
{
case EXISTENCE:
NonexistenceProofBody nonexistenceProof;
case NONEXISTENCE:
ExistenceProofBody existenceProof;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionArchivalProofBody(ArchivalProofType discriminant, NonexistenceProofBody nonexistenceProof, ExistenceProofBody existenceProof) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(ArchivalProofType discriminant) voidsetExistenceProof(ExistenceProofBody existenceProof) voidsetNonexistenceProof(NonexistenceProofBody nonexistenceProof) toString()default Stringdefault byte[]
-
Constructor Details
-
ArchivalProofBody
public ArchivalProofBody() -
ArchivalProofBody
public ArchivalProofBody(ArchivalProofType discriminant, NonexistenceProofBody nonexistenceProof, ExistenceProofBody existenceProof)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getNonexistenceProof
-
getExistenceProof
-
setDiscriminant
-
setNonexistenceProof
-
setExistenceProof
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-