public SubBitVector subList( final int from, final int to ) { return new SubBitVector( this, from, to ); }
public void add( final long index, final int value ) { add( index, value != 0 ); to++; } public void add( final int value ) { bitVector.add( to++, value ); }
public int getInt( final long index ) { return getBoolean( index ) ? 1 : 0; } public boolean set( final long index, final boolean value ) { return bitVector.set( from + index, value ); }
@Override public void set(final long index, final int value) { set(index, value != 0); }
@Override public int getInt(final long index) { return getBoolean(index) ? 1 : 0; }
public void add( final long index, final int value ) { add( index, value != 0 ); to++; } public void add( final int value ) { bitVector.add( to++, value ); }
public void set( final long index, final int value ) { set( index, value != 0 ); } public void add( final long index, final boolean value ) { bitVector.add( from + index, value ); to++; }
public void set( final long index, final int value ) { set( index, value != 0 ); } public void add( final long index, final boolean value ) { bitVector.add( from + index, value ); to++; }
public BitVector subVector( final long from, final long to ) { return new SubBitVector( this, from, to ); }
@Override public void add(final long index, final int value) { add(index, value != 0); to++; } @Override
public int getInt( final long index ) { return getBoolean( index ) ? 1 : 0; } public boolean set( final long index, final boolean value ) { return bitVector.set( from + index, value ); }
public SubBitVector subList( final int from, final int to ) { return new SubBitVector( this, from, to ); }
public BitVector subVector( final long from, final long to ) { return new SubBitVector( this, from, to ); }
public BitVector copy( final long from, final long to ) { BitVectors.ensureFromTo( length(), from, to ); return bitVector.copy( this.from + from, this.from + to ); }
@Override public BitVector subVector(final long from, final long to) { return new SubBitVector(this, from, to); }
public BitVector subVector( final long from, final long to ) { BitVectors.ensureFromTo( length(), from, to ); return new SubBitVector( bitVector, this.from + from, this.from + to ); }
public BitVector copy( final long from, final long to ) { BitVectors.ensureFromTo( length(), from, to ); return bitVector.copy( this.from + from, this.from + to ); }
public BitVector subVector( final long from, final long to ) { BitVectors.ensureFromTo( length(), from, to ); return new SubBitVector( bitVector, this.from + from, this.from + to ); }
@Override public void add(final long index, final boolean value) { ensureIndex(index); bitVector.add(from + index, value); to++; }
@Override public boolean set(final long index, final boolean value) { ensureIndex(index); return bitVector.set(from + index, value); }