Class TInteger

All Implemented Interfaces:
TSerializable, TComparable<TInteger>

public class TInteger extends TNumber implements TComparable<TInteger>
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public static String toString(int i, int radix)
    • toUnsignedString

      public static String toUnsignedString(int value, int radix)
    • toUnsignedString

      public static String toUnsignedString(int value)
    • hashCode

      public static int hashCode(int value)
    • toHexString

      public static String toHexString(int i)
    • toOctalString

      public static String toOctalString(int i)
    • toBinaryString

      public static String toBinaryString(int i)
    • toString

      public static String toString(int i)
    • parseInt

      public static int parseInt(String s, int radix) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • parseInt

      public static int parseInt(CharSequence s, int beginIndex, int endIndex, int radix) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • parseInt

      public static int parseInt(String s) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • valueOf

      public static TInteger valueOf(String s, int radix) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • valueOf

      public static TInteger valueOf(String s) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • valueOf

      public static TInteger valueOf(int i)
    • intValue

      public int intValue()
      Specified by:
      intValue in class TNumber
    • longValue

      public long longValue()
      Specified by:
      longValue in class TNumber
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class TNumber
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class TNumber
    • toString

      public String toString()
      Overrides:
      toString in class TObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TObject
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class TObject
    • getInteger

      public static TInteger getInteger(TString nm)
    • getInteger

      public static TInteger getInteger(TString nm, int val)
    • getInteger

      public static TInteger getInteger(TString nm, TInteger val)
    • decode

      public static TInteger decode(String nm) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • compareTo

      public int compareTo(TInteger other)
      Specified by:
      compareTo in interface TComparable<TInteger>
    • compare

      public static int compare(int x, int y)
    • numberOfLeadingZeros

      public static int numberOfLeadingZeros(int i)
    • numberOfTrailingZeros

      public static int numberOfTrailingZeros(int i)
    • highestOneBit

      public static int highestOneBit(int i)
    • lowestOneBit

      public static int lowestOneBit(int i)
    • bitCount

      public static int bitCount(int i)
    • rotateLeft

      public static int rotateLeft(int i, int distance)
    • rotateRight

      public static int rotateRight(int i, int distance)
    • reverse

      public static int reverse(int i)
    • reverseBytes

      public static int reverseBytes(int i)
    • signum

      public static int signum(int i)
    • divideUnsigned

      public static int divideUnsigned(int dividend, int divisor)
    • remainderUnsigned

      public static int remainderUnsigned(int dividend, int divisor)
    • compareUnsigned

      public static int compareUnsigned(int a, int b)
    • min

      public static int min(int a, int b)
    • max

      public static int max(int a, int b)
    • toUnsignedLong

      public static long toUnsignedLong(int n)
    • sum

      public static int sum(int a, int b)