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
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionArchivalProofBody
(ArchivalProofType discriminant, NonexistenceProofBody nonexistenceProof, ExistenceProofBody existenceProof) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(ArchivalProofType discriminant) void
setExistenceProof
(ExistenceProofBody existenceProof) void
setNonexistenceProof
(NonexistenceProofBody nonexistenceProof) toString()
default String
default 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
-