Class TLong

All Implemented Interfaces:
TSerializable, TComparable<TLong>

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

  • Constructor Details

  • Method Details

    • valueOf

      public static TLong valueOf(long value)
    • parseLong

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

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

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

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

      public static TLong decode(TString nm) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • 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 static String toString(long i, int radix)
    • toHexString

      public static String toHexString(long i)
    • toOctalString

      public static String toOctalString(long i)
    • toBinaryString

      public static String toBinaryString(long i)
    • toString

      public static String toString(long value)
    • 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
    • compare

      public static int compare(long a, long b)
    • compareTo

      public int compareTo(TLong other)
      Specified by:
      compareTo in interface TComparable<TLong>
    • getLong

      public static TLong getLong(String nm)
    • getLong

      public static TLong getLong(String nm, long val)
    • getLong

      public static TLong getLong(String nm, TLong val)
    • highestOneBit

      public static long highestOneBit(long i)
    • numberOfLeadingZeros

      public static int numberOfLeadingZeros(long i)
    • numberOfTrailingZeros

      public static int numberOfTrailingZeros(long i)
    • lowestOneBit

      public static long lowestOneBit(long i)
    • bitCount

      public static int bitCount(long i)
    • rotateLeft

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

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

      public static long reverse(long i)
    • reverseBytes

      public static long reverseBytes(long i)
    • signum

      public static int signum(long i)
    • divideUnsigned

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

      public static long remainderUnsigned(long dividend, long divisor)