@Override public void insertAfter(List<E> toInsert, E point) { insertAfter((Collection<? extends E>) toInsert, point); }
@Override public void insertAfter(Chain<E> toInsert, E point) { insertAfter((Collection<? extends E>) toInsert, point); }
public void insertAfter(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!"); } E previousPoint = point; for (E o : toInsert) { insertAfter(o, previousPoint); previousPoint = o; } }
public void insertAfter(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!"); E previousPoint = point; Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertAfter(o, previousPoint); previousPoint = o; } objectIndexes = null; // RoboVM note: Added }
public void insertAfter(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!"); E previousPoint = point; Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertAfter(o, previousPoint); previousPoint = o; } objectIndexes = null; // RoboVM note: Added }
public void insertAfter(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!"); E previousPoint = point; Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertAfter(o, previousPoint); previousPoint = o; } objectIndexes = null; // RoboVM note: Added }
public void insertAfter(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!"); E previousPoint = point; Iterator<E> it = toInsert.iterator(); while (it.hasNext()) { E o = it.next(); insertAfter(o, previousPoint); previousPoint = o; } objectIndexes = null; // RoboVM note: Added }