BitsLong { public static final boolean isSet(long bits, int bitIndex) { check(bitIndex) ; return test$(bits, true, bitIndex) ; } private  BitsLong(); static final long unpack(long bits, int start, int finish); static final long pack(long bits, long value, int start, int finish); static final long unpack(String str, int startChar, int finishChar); static final long set(long bits, int bitIndex); static final long set(long bits, int start, int finish); static final boolean test(long bits, boolean isSet, int bitIndex); static final boolean isSet(long bits, int bitIndex); static final boolean test(long bits, long value, int start, int finish); static final long access(long bits, int start, int finish); static final long clear(long bits, int bitIndex); static final long clear(long bits, int start, int finish); static final long mask(int start, int finish); static final long maskZero(int start, int finish);  }
@Test public void testIsSet1() { long v = 0x0000000000000010L ; BitsLong.isSet(v, 4) ; assertTrue(BitsLong.isSet(v, 4)) ; assertFalse(BitsLong.isSet(v, 3)) ; assertFalse(BitsLong.isSet(v, 5)) ; }