@Test public void testNextPowerOfTwo() { for(int power = 1; power < 16; power++) { for(int i = (int) Math.pow(2, power) + 1; i <= (int) Math.pow(2, power); i++) { Assert.assertEquals((int) Math.pow(2, power), PowerOfTwo.nextPowerOfTwo(i)); } } }
public static int nextPowerOfTwo(int value) { return MathUtils.nextPowerOfTwo(value); }
PowerOfTwo { public static int nextPowerOfTwo(int value) { return MathUtils.nextPowerOfTwo(value); } }
PowerOfTwo { public static int nextPowerOfTwo(int value) { return MathUtils.nextPowerOfTwo(value); }  }
PowerOfTwo { public static int nextPowerOfTwo(int value) { return MathUtils.nextPowerOfTwo(value); }  static int nextPowerOfTwo(int value); static int previousPowerOfTwo(int value); }
PowerOfTwo { public static int nextPowerOfTwo(int value) { return MathUtils.nextPowerOfTwo(value); }  static int nextPowerOfTwo(int value); static int previousPowerOfTwo(int value);  }