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

Method set

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

Source from the content-addressed store, hash-verified

122 }
123
124 public void set(int index) {
125 int pos = longPosition(index);
126 enlarge(pos);
127 bits[pos] |= bitPosition(index);
128 }
129
130 public void set(int start, int end) {
131 MaskInfoIterator iter = new MaskInfoIterator(start, end);

Callers 3

mainMethod · 0.95
testFlipMethod · 0.95
testClearMethod · 0.95

Calls 6

longPositionMethod · 0.95
enlargeMethod · 0.95
bitPositionMethod · 0.95
getLastPartitionMethod · 0.95
hasNextMethod · 0.95
nextMethod · 0.95

Tested by 3

mainMethod · 0.76
testFlipMethod · 0.76
testClearMethod · 0.76