@Override public void add(boolean k) { BooleanBigArrayBigList.this.add(pos++, k); last = -1; } @Override
/** * Creates a new big-array big list and fills it with the elements returned by * an iterator.. * * @param i * an iterator whose returned elements will fill the array list. */ public BooleanBigArrayBigList(final Iterator<? extends Boolean> i) { this(); while (i.hasNext()) this.add((i.next()).booleanValue()); } /**
/** * Creates a new big-array big 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 BooleanBigArrayBigList(final BooleanIterator i) { this(); while (i.hasNext()) this.add(i.nextBoolean()); } /**
/** * Creates a new big-array big list and fills it with a given type-specific * collection. * * @param c * a type-specific collection that will be used to fill the array * list. */ public BooleanBigArrayBigList(final BooleanCollection c) { this(c.size()); for (BooleanIterator i = c.iterator(); i.hasNext();) add(i.nextBoolean()); } /**