Example #1
0
 public void removeAll(FastArrayList <E> list)
 {
     for (int i = list.size(); i-- > 0;)
     {
         removeUnsafeVoid(indexOf(list.getUnsafe(i)));
     }
 }
Example #2
0
 public bool containsAll(FastArrayList <E> list)
 {
     for (int i = list.size(); i-- > 0;)
     {
         if (!contains(list.getUnsafe(i)))
         {
             return(false);
         }
     }
     return(true);
 }
Example #3
0
 public bool addAll(FastArrayList <E> list)
 {
     if (list.isEmpty())
     {
         return(false);
     }
     //
     ensureCapacity(_size + list._size);
     Array.Copy(list._values, 0, _values, _size, list._size);
     _size += list._size;
     //
     return(true);
 }
Example #4
0
        public void addAllIfAbsent(FastArrayList <E> list)
        {
            E value;

            for (int i = list.size(); i-- > 0;)
            {
                value = list.getUnsafe(i);
                if (!contains(value))
                {
                    addLast(value);
                }
            }
        }