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