MCPcopy
hub / github.com/zxing/zxing / get

Method get

core/src/main/java/com/google/zxing/common/BitArray.java:70–72  ·  view source on GitHub ↗

@param i bit to get @return true iff bit i is set

(int i)

Source from the content-addressed store, hash-verified

68 * @return true iff bit i is set
69 */
70 public boolean get(int i) {
71 return (bits[i / 32] & (1 << (i & 0x1F))) != 0;
72 }
73
74 /**
75 * Sets bit i.

Callers 15

testGetRowMethod · 0.95
testGetSetMethod · 0.95
testGetNextSet5Method · 0.95
testSetBulkMethod · 0.95
testSetRangeMethod · 0.95
testClearMethod · 0.95
testFlipMethod · 0.95
testCloneMethod · 0.95
testAtMethod · 0.95
toBytesMethod · 0.95
toStringMethod · 0.95
embedTypeInfoMethod · 0.95

Calls

no outgoing calls

Tested by 15

testGetRowMethod · 0.76
testGetSetMethod · 0.76
testGetNextSet5Method · 0.76
testSetBulkMethod · 0.76
testSetRangeMethod · 0.76
testClearMethod · 0.76
testFlipMethod · 0.76
testCloneMethod · 0.76
testAtMethod · 0.76
testDecodingRowByRowMethod · 0.36
testBlackBoxMethod · 0.36
matrixToStringMethod · 0.36