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

Method enlarge

classpath/java/util/BitSet.java:89–97  ·  view source on GitHub ↗
(int newPartition)

Source from the content-addressed store, hash-verified

87 }
88
89 private void enlarge(int newPartition) {
90 if (bits == null || bits.length < (newPartition + 1)) {
91 long[] newBits = new long[newPartition + 1];
92 if (bits != null) {
93 System.arraycopy(bits, 0, newBits, 0, bits.length);
94 }
95 bits = newBits;
96 }
97 }
98
99 public boolean get(int index) {
100 int pos = longPosition(index);

Callers 6

BitSetMethod · 0.95
andNotMethod · 0.95
orMethod · 0.95
xorMethod · 0.95
flipMethod · 0.95
setMethod · 0.95

Calls 1

arraycopyMethod · 0.95

Tested by

no test coverage detected