示例#1
0
 public boolean containsAll(ByteList c) {
   for (int i = 0; i != c.size(); ++i) {
     if (!this.contains(c.get(i))) {
       return false;
     }
   }
   return true;
 }
示例#2
0
 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;
 }
示例#3
0
 byte next() {
   if (pos >= this.list.size() || pos < 0) {
     throw new java.util.NoSuchElementException();
   }
   return list.get(this.pos++);
 }