Package org.stellar.sdk.xdr
Class SCPQuorumSet
java.lang.Object
org.stellar.sdk.xdr.SCPQuorumSet
- All Implemented Interfaces:
XdrElement
SCPQuorumSet's original definition in the XDR file is:
struct SCPQuorumSet
{
uint32 threshold;
NodeID validators<>;
SCPQuorumSet innerSets<>;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSCPQuorumSet(Uint32 threshold, NodeID[] validators, SCPQuorumSet[] innerSets) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCPQuorumSetdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCPQuorumSetfromXdrBase64(String xdr) static SCPQuorumSetfromXdrByteArray(byte[] xdr) NodeID[]inthashCode()voidsetInnerSets(SCPQuorumSet[] innerSets) voidsetThreshold(Uint32 threshold) voidsetValidators(NodeID[] validators) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCPQuorumSet
public SCPQuorumSet() -
SCPQuorumSet
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getThreshold
-
getValidators
-
getInnerSets
-
setThreshold
-
setValidators
-
setInnerSets
-
equals
-
hashCode
public int hashCode() -
toString
-