Class Vote

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.math.BigInteger>, Codec

    public class Vote
    extends I8
    A number of lock periods, plus a vote, one way or the other.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.math.BigInteger

        ONE, TEN, TWO, ZERO
    • Constructor Summary

      Constructors 
      Constructor Description
      Vote​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      boolean isAye()
      true is the wrapped value is a positive vote
      boolean isNay()
      true is the wrapped value is a negative vote
      • Methods inherited from class org.polkadot.types.primitive.Int

        toHex, toU8a
      • Methods inherited from class java.math.BigInteger

        abs, add, and, andNot, bitCount, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, shortValueExact, signum, sqrt, sqrtAndRemainder, subtract, testBit, toByteArray, toString, toString, valueOf, xor
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
    • Constructor Detail

      • Vote

        public Vote​(java.lang.Object value)
    • Method Detail

      • isAye

        public boolean isAye()
        true is the wrapped value is a positive vote
      • isNay

        public boolean isNay()
        true is the wrapped value is a negative vote