1 package org.bouncycastle.util;
2 
3 /**
4  * Utility methods for ints.
5  */
6 public class Integers
7 {
numberOfLeadingZeros(int i)8     public static int numberOfLeadingZeros(int i)
9     {
10         return Integer.numberOfLeadingZeros(i);
11     }
12 
numberOfTrailingZeros(int i)13     public static int numberOfTrailingZeros(int i)
14     {
15         return Integer.numberOfTrailingZeros(i);
16     }
17 
reverse(int i)18     public static int reverse(int i)
19     {
20         return Integer.reverse(i);
21     }
22 
reverseBytes(int i)23     public static int reverseBytes(int i)
24     {
25         return Integer.reverseBytes(i);
26     }
27 
rotateLeft(int i, int distance)28     public static int rotateLeft(int i, int distance)
29     {
30         return Integer.rotateLeft(i, distance);
31     }
32 
rotateRight(int i, int distance)33     public static int rotateRight(int i, int distance)
34     {
35         return Integer.rotateRight(i, distance);
36     }
37 
valueOf(int value)38     public static Integer valueOf(int value)
39     {
40         return Integer.valueOf(value);
41     }
42 }
43