@Test public void testNextPowTwo() throws Exception { assertEquals(16, Utils.nextPowTwo(9)); assertEquals(8, Utils.nextPowTwo(8)); }
public static int nextPowTwo(final int value){ int ret = 2; while(ret<value) ret = ret<<1; return ret; }
Utils { public static int nextPowTwo(final int value){ int ret = 2; while(ret<value) ret = ret<<1; return ret; } }
Utils { public static int nextPowTwo(final int value){ int ret = 2; while(ret<value) ret = ret<<1; return ret; }  }
Utils { public static int nextPowTwo(final int value){ int ret = 2; while(ret<value) ret = ret<<1; return ret; }  static void packLong(DataOutput out, long value); static long unpackLong(DataInput in); static void packInt(DataOutput in, int value); static int unpackInt(DataInput is); static int longHash(final long key); static E clone(E value, Serializer<E> serializer); static Object[] arrayPut(final Object[] array, final int pos, final Object value); static long[] arrayLongPut(final long[] array, final int pos, final long value); static int nextPowTwo(final int value); static File tempDbFile(); static boolean isWindows(); static boolean isAndroid(); static boolean JVMSupportsLargeMappedFiles(); static void checkMapValueIsNotCollecion(Object value); static void printProgress(final AtomicLong value); static DataOutput2 serializer(Serializer<A> serializer, A value); }
Utils { public static int nextPowTwo(final int value){ int ret = 2; while(ret<value) ret = ret<<1; return ret; }  static void packLong(DataOutput out, long value); static long unpackLong(DataInput in); static void packInt(DataOutput in, int value); static int unpackInt(DataInput is); static int longHash(final long key); static E clone(E value, Serializer<E> serializer); static Object[] arrayPut(final Object[] array, final int pos, final Object value); static long[] arrayLongPut(final long[] array, final int pos, final long value); static int nextPowTwo(final int value); static File tempDbFile(); static boolean isWindows(); static boolean isAndroid(); static boolean JVMSupportsLargeMappedFiles(); static void checkMapValueIsNotCollecion(Object value); static void printProgress(final AtomicLong value); static DataOutput2 serializer(Serializer<A> serializer, A value); @SuppressWarnings("rawtypes")
	static final Comparator<Comparable> COMPARABLE_COMPARATOR; @SuppressWarnings("rawtypes")
	static final Comparator<Comparable> COMPARABLE_COMPARATOR_WITH_NULLS; static final String EMPTY_STRING; static final String UTF8; static Random RANDOM; }