Package org.stellar.sdk.xdr
Class SCPQuorumSet
java.lang.Object
org.stellar.sdk.xdr.SCPQuorumSet
SCPQuorumSet's original definition in the XDR file is:
struct SCPQuorumSet { uint32 threshold; NodeID validators<>; SCPQuorumSet innerSets<>; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSCPQuorumSet
(Uint32 threshold, NodeID[] validators, SCPQuorumSet[] innerSets) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SCPQuorumSet
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SCPQuorumSet
fromXdrBase64
(String xdr) static SCPQuorumSet
fromXdrByteArray
(byte[] xdr) NodeID[]
int
hashCode()
void
setInnerSets
(SCPQuorumSet[] innerSets) void
setThreshold
(Uint32 threshold) void
setValidators
(NodeID[] validators) toString()
default String
default byte[]
-
Constructor Details
-
SCPQuorumSet
public SCPQuorumSet() -
SCPQuorumSet
-
-
Method Details
-
encode
- 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
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-