public class PowerOfTwo
extends java.lang.Object
| Constructor and Description | 
|---|
| PowerOfTwo() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | nextPowerOfTwo(int value)Returns the next power of two greater than or equal to a given value | 
| static int | previousPowerOfTwo(int value)Returns the previous power of two less than or equal to a given value | 
public static int nextPowerOfTwo(int value)
value - The value to checkpublic static int previousPowerOfTwo(int value)
value - The value to check