(int length)
| 6 | private int[] vector; |
| 7 | |
| 8 | public BitVector(int length) { |
| 9 | this.length = length; |
| 10 | if (length % DATA_SIZE == 0) { |
| 11 | vector = new int[length / DATA_SIZE]; |
| 12 | } else { |
| 13 | vector = new int[length / DATA_SIZE + 1]; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | public int length() { |
| 18 | return length; |
nothing calls this directly
no outgoing calls
no test coverage detected