@Override public void insertBefore(List<E> toInsert, E point) { insertBefore((Collection<E>) toInsert, point); }
@Override public void insertBefore(Chain<E> toInsert, E point) { insertBefore((Collection<E>) toInsert, point); }
public void insertBefore(Collection<? extends E> toInsert, E point) { // if the list is null, treat it as an empty list if (toInsert == null) { throw new RuntimeException("Warning! You tried to insert a null list into a Chain!"); } for (E o : toInsert) { insertBefore(o, point); } }
@Override public void swapWith(E out, E in) { insertBefore(in, out); remove(out); }
public void insertBefore(List<E> toInsert, E point) { // if the list is null, treat it as an empty list if (toInsert == null) throw new RuntimeException("Warning! You tried to insert " + "a null list into a Chain!"); Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertBefore(o, point); } objectIndexes = null; // RoboVM note: Added }
public void insertBefore(List<E> toInsert, E point) { // if the list is null, treat it as an empty list if (toInsert == null) throw new RuntimeException("Warning! You tried to insert " + "a null list into a Chain!"); Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertBefore(o, point); } objectIndexes = null; // RoboVM note: Added }
public void swapWith(E out, E in) { insertBefore(in, out); remove(out); objectIndexes = null; // RoboVM note: Added }
public void swapWith(E out, E in) { insertBefore(in, out); remove(out); objectIndexes = null; // RoboVM note: Added }
public void insertBefore(Chain<E> toInsert, E point) { // if the list is null, treat it as an empty list if (toInsert == null) throw new RuntimeException("Warning! You tried to insert " + "a null list into a Chain!"); Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertBefore(o, point); } objectIndexes = null; // RoboVM note: Added }
public void insertBefore(Chain<E> toInsert, E point) { // if the list is null, treat it as an empty list if (toInsert == null) throw new RuntimeException("Warning! You tried to insert " + "a null list into a Chain!"); Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertBefore(o, point); } objectIndexes = null; // RoboVM note: Added }