public boolean containsAll(ByteList c) { for (int i = 0; i != c.size(); ++i) { if (!this.contains(c.get(i))) { return false; } } return true; }
public boolean removeAll(ByteList list) { boolean removed = false; for (int i = 0; i != list.size(); ++i) { byte val = list.get(i); while (this.remove(val)) { removed = true; } } return removed; }
byte next() { if (pos >= this.list.size() || pos < 0) { throw new java.util.NoSuchElementException(); } return list.get(this.pos++); }