public class SCPQuorumSet extends java.lang.Object implements XdrElement
struct SCPQuorumSet { uint32 threshold; NodeID validators<>; SCPQuorumSet innerSets<>; };
Modifier and Type | Class and Description |
---|---|
static class |
SCPQuorumSet.SCPQuorumSetBuilder |
Constructor and Description |
---|
SCPQuorumSet() |
SCPQuorumSet(Uint32 threshold,
NodeID[] validators,
SCPQuorumSet[] innerSets) |
Modifier and Type | Method and Description |
---|---|
static SCPQuorumSet.SCPQuorumSetBuilder |
builder() |
static SCPQuorumSet |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SCPQuorumSet |
fromXdrBase64(java.lang.String xdr) |
static SCPQuorumSet |
fromXdrByteArray(byte[] xdr) |
SCPQuorumSet[] |
getInnerSets() |
Uint32 |
getThreshold() |
NodeID[] |
getValidators() |
int |
hashCode() |
void |
setInnerSets(SCPQuorumSet[] innerSets) |
void |
setThreshold(Uint32 threshold) |
void |
setValidators(NodeID[] validators) |
SCPQuorumSet.SCPQuorumSetBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public SCPQuorumSet()
public SCPQuorumSet(Uint32 threshold, NodeID[] validators, SCPQuorumSet[] innerSets)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SCPQuorumSet decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SCPQuorumSet fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SCPQuorumSet fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SCPQuorumSet.SCPQuorumSetBuilder builder()
public SCPQuorumSet.SCPQuorumSetBuilder toBuilder()
public Uint32 getThreshold()
public NodeID[] getValidators()
public SCPQuorumSet[] getInnerSets()
public void setThreshold(Uint32 threshold)
public void setValidators(NodeID[] validators)
public void setInnerSets(SCPQuorumSet[] innerSets)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object