Code example for BitSet

Methods: length

0
 
    private final BitSet bits;
    protected final int length;
     
    protected BitList(BitSet bits, int length) {
        assert length >= bits.length();
        this.bits = bits;
        this.length = length;
    } 
     
    public static BitList newInstance(BitSet bits, int length) {
        return new BitList(bits, length);
    } 
     
    public int length() { 
        return length;
    } 
 
    public boolean get(int index) {
        if (index<0 || index>=length)
Experience pair programming with AI  Get Codota for Java