Ejemplo n.º 1
0
 /**
  * Adds the given items to the list. Does not modify the input.
  *
  * @see {@link SortedList#addAll(T[] items, boolean mayModifyInput)}
  * @param items Collection of items to be added into the list.
  */
 public void addAll(Collection<T> items) {
   T[] copy = (T[]) Array.newInstance(mTClass, items.size());
   addAll(items.toArray(copy), true);
 }
Ejemplo n.º 2
0
 /**
  * Adds the given items to the list. Does not modify the input.
  *
  * @see {@link SortedList#addAll(T[] items, boolean mayModifyInput)}
  * @param items Array of items to be added into the list.
  */
 public void addAll(T... items) {
   addAll(items, false);
 }