Class Int

    • Constructor Detail

      • Int

        protected Int​(String i,
                      int radix)

        Constructor for Int.

        Parameters:
        i - a String object
        radix - a int
    • Method Detail

      • parse

        public static Int parse​(String i)

        parse.

        Parameters:
        i - a String object
        Returns:
        a Int object
      • parse

        public static Int parse​(int i)

        parse.

        Parameters:
        i - a int
        Returns:
        a Int object
      • parse

        public static Int parse​(long i)

        parse.

        Parameters:
        i - a long
        Returns:
        a Int object
      • parse

        public static Int parse​(BigInteger bi)

        parse.

        Parameters:
        bi - a big integer
        Returns:
        a Int object
      • lt

        public boolean lt​(Int otherInt)

        lt.

        Parameters:
        otherInt - a Int object
        Returns:
        a boolean
      • le

        public boolean le​(Int otherInt)

        le.

        Parameters:
        otherInt - a Int object
        Returns:
        a boolean
      • gt

        public boolean gt​(Int otherInt)

        gt.

        Parameters:
        otherInt - a Int object
        Returns:
        a boolean
      • ge

        public boolean ge​(Int otherInt)

        ge.

        Parameters:
        otherInt - a Int object
        Returns:
        a boolean
      • toBytes

        public byte[] toBytes()

        toBytes.

        Returns:
        an array of byte objects
      • toBytes

        public byte[] toBytes​(int length)

        toBytes.

        Parameters:
        length - a int
        Returns:
        an array of byte objects
      • toBytesLittleEndian

        public byte[] toBytesLittleEndian()

        toBytesLittleEndian.

        Returns:
        an array of byte objects
      • toBytesLittleEndian

        public byte[] toBytesLittleEndian​(int length)

        toBytesLittleEndian.

        Parameters:
        length - a int
        Returns:
        an array of byte objects
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toHex

        public Hex toHex()

        toHex.

        Returns:
        a Hex object
      • toBin

        public String toBin()

        toBin

        Returns:
        .
      • intValue

        public int intValue()

        intValue.

        Returns:
        a int
      • longValue

        public long longValue()

        longValue.

        Returns:
        a long
      • log

        @Deprecated(since="0")
        public static Int log​(Int i)
        Deprecated.
        temp use only

        log.

        Parameters:
        i - a Int object
        Returns:
        a Int object