MCPcopy Create free account
hub / github.com/ReadyTalk/avian / get

Method get

classpath/java/util/BitSet.java:99–105  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

97 }
98
99 public boolean get(int index) {
100 int pos = longPosition(index);
101 if (pos < bits.length) {
102 return (bits[pos] & bitPosition(index)) != 0;
103 }
104 return false;
105 }
106
107 public void flip(int index) {
108 flip(index, index+1);

Callers 3

mainMethod · 0.95
testFlipMethod · 0.95
testClearMethod · 0.95

Calls 2

longPositionMethod · 0.95
bitPositionMethod · 0.95

Tested by 3

mainMethod · 0.76
testFlipMethod · 0.76
testClearMethod · 0.76