Class Integers


  • public class Integers
    extends java.lang.Object
    Utility methods for ints.
    • Constructor Detail

      • Integers

        public Integers()
    • Method Detail

      • numberOfLeadingZeros

        public static int numberOfLeadingZeros​(int i)
      • numberOfTrailingZeros

        public static int numberOfTrailingZeros​(int i)
      • reverse

        public static int reverse​(int i)
      • reverseBytes

        public static int reverseBytes​(int i)
      • rotateLeft

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

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

        public static java.lang.Integer valueOf​(int value)