Class Longs


  • public class Longs
    extends java.lang.Object
    Utility methods and constants for longs.
    • Constructor Detail

      • Longs

        public Longs()
    • Method Detail

      • bitCount

        public static int bitCount​(long i)
      • bitLength

        public static int bitLength​(long i)
      • compare

        public static int compare​(long x,
                                  long y)
      • compareUnsigned

        public static int compareUnsigned​(long x,
                                          long y)
      • highestOneBit

        public static long highestOneBit​(long i)
      • lowestOneBit

        public static long lowestOneBit​(long i)
      • numberOfLeadingZeros

        public static int numberOfLeadingZeros​(long i)
      • numberOfTrailingZeros

        public static int numberOfTrailingZeros​(long i)
      • reverse

        public static long reverse​(long i)
      • reverseBytes

        public static long reverseBytes​(long i)
      • rotateLeft

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

        public static long rotateRight​(long i,
                                       int distance)
      • valueOf

        public static java.lang.Long valueOf​(long value)