Class UnsignedNumber

    • Field Detail

      • hexLetters

        protected static final char[] hexLetters
    • Constructor Detail

      • UnsignedNumber

        public UnsignedNumber()
    • Method Detail

      • getBytes

        public abstract byte[] getBytes()
        Get a byte array representation of the number. The order will be MSB first (Big Endian).
        Returns:
        the serialized number
      • shiftRight

        public abstract void shiftRight​(int nBits)
        Perform a bit right shift of the value.
        Parameters:
        nBits - the number of positions to shift
      • shiftLeft

        public abstract void shiftLeft​(int nBits)
        Perform a bit left shift of the value.
        Parameters:
        nBits - the number of positions to shift
      • equals

        public abstract boolean equals​(Object other)
        Overrides:
        equals in class Object
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class Object
      • toHexString

        public String toHexString()
      • toHexString

        public String toHexString​(boolean pad)