/** * Flushes the internal state of the list, setting the capacity of the empty list to * <tt>capacity</tt>. */ public void clear(int capacity) { _data.resize(capacity); _data.clear(); _pos = 0; }