Package org.polkadot.types.type
Class Exposure
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.type.Exposure
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec
public class Exposure extends Struct
A snapshot of the stake backing a single validator in the system- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Exposure(java.lang.Object value)
-
Method Summary
-
Methods inherited from class org.polkadot.types.codec.Struct
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getOwn
public Balance getOwn()
The validator"s own stash that is exposed
-
getTotal
public Balance getTotal()
The total balance backing this validator
-
getOthers
public Vector<IndividualExposure> getOthers()
The portions of nominators stashes that are exposed
-
-