@Override public void add(boolean k) { BooleanArrayList.this.add(pos++, k); last = -1; } @Override
@Override public void addBoolean(boolean value) { list.add(value); } };
/** * Creates a new array list and fills it with the elements returned by an * iterator.. * * @param i * an iterator whose returned elements will fill the array list. */ public BooleanArrayList(final Iterator<? extends Boolean> i) { this(); while (i.hasNext()) this.add((i.next()).booleanValue()); } /**
if (wrapped == null) wrapped = new BooleanArrayList(2); wrapped.add(key[pos]);
/** * Creates a new array list and fills it with the elements returned by a * type-specific iterator.. * * @param i * a type-specific iterator whose returned elements will fill the * array list. */ public BooleanArrayList(final BooleanIterator i) { this(); while (i.hasNext()) this.add(i.nextBoolean()); } /**