Utils { static public void packLong(DataOutput out, long value) throws IOException { if (value < 0) { throw new IllegalArgumentException("negative value: keys=" + value); } while ((value & ~0x7FL) != 0) { out.write((((int) value & 0x7F) | 0x80)); value >>>= 7; } out.write((byte) value); }  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; }
@Test public void testPackLong() throws Exception { DataOutput2 out = new DataOutput2(); DataInput2 in = new DataInput2(ByteBuffer.wrap(out.buf,0, out.pos),0); for(long i = 0;i>-1L ; i=i+1 + i/111){ out.pos = 0; Utils.packLong(out, i); in.pos = 0; in.buf.clear(); long i2 = Utils.unpackLong(in); Assert.assertEquals(i, i2); } }