public class Set extends Base<java.util.List<java.lang.String>> implements Codec
An Set is an array of string values, represented an an encoded type by a bitwise representation of the values.
Modifier and Type | Class and Description |
---|---|
static class |
Set.SetValues |
Constructor and Description |
---|
Set(Set.SetValues setValues,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
eq(java.lang.Object other)
Compares the value of the input to see if there is a match
|
int |
getEncodedLength()
The length of the value when encoded as a Uint8Array
|
boolean |
isEmpty()
true is the Set contains no values
|
java.lang.String |
toHex()
Returns a hex string representation of the value
|
java.lang.Object |
toJson()
Converts the Object to JSON, typically used for RPC transfers
|
java.lang.String |
toString()
Returns the string representation of the value
|
byte[] |
toU8a(boolean isBare) |
long |
valueEncoded()
The encoded value for the set members
|
java.util.List<java.lang.String> |
values()
The actual set values as a Array
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstructorCodec, toU8a
public Set(Set.SetValues setValues, java.lang.Object value)
public int getEncodedLength()
The length of the value when encoded as a Uint8Array
getEncodedLength
in interface Codec
public boolean isEmpty()
true is the Set contains no values
public java.util.List<java.lang.String> values()
The actual set values as a Array
public long valueEncoded()
The encoded value for the set members
public boolean eq(java.lang.Object other)
Compares the value of the input to see if there is a match
public java.lang.String toHex()
Returns a hex string representation of the value
public java.lang.Object toJson()
Converts the Object to JSON, typically used for RPC transfers
public java.lang.String toString()
Returns the string representation of the value
toString
in class java.lang.Object