Package org.stellar.sdk.xdr
Class PersistedSCPState
java.lang.Object
org.stellar.sdk.xdr.PersistedSCPState
- All Implemented Interfaces:
XdrElement
PersistedSCPState's original definition in the XDR file is:
union PersistedSCPState switch (int v)
{
case 0:
PersistedSCPStateV0 v0;
case 1:
PersistedSCPStateV1 v1;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPersistedSCPState(Integer discriminant, PersistedSCPStateV0 v0, PersistedSCPStateV1 v1) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PersistedSCPStatedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PersistedSCPStatefromXdrBase64(String xdr) static PersistedSCPStatefromXdrByteArray(byte[] xdr) getV0()getV1()inthashCode()voidsetDiscriminant(Integer discriminant) voidvoidtoString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PersistedSCPState
public PersistedSCPState() -
PersistedSCPState
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getV0
-
getV1
-
setDiscriminant
-
setV0
-
setV1
-
equals
-
hashCode
public int hashCode() -
toString
-