Class Integers

java.lang.Object
org.bouncycastle.util.Integers

public class Integers extends Object
Utility methods and constants for ints.
  • Field Details

  • Constructor Details

    • Integers

      public Integers()
  • Method Details

    • bitCount

      public static int bitCount(int i)
    • highestOneBit

      public static int highestOneBit(int i)
    • lowestOneBit

      public static int lowestOneBit(int i)
    • 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 Integer valueOf(int value)