public static class ProblemList.UnmodifiableProblemList<P extends Problem> extends ProblemList<P>
ProblemList.UnmodifiableProblemList<P extends Problem>EMPTY_PROBLEM_LISTmodCount| Constructor and Description |
|---|
UnmodifiableProblemList() |
UnmodifiableProblemList(ProblemList<P> problems) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
P element) |
boolean |
add(P problem) |
boolean |
addAll(Collection<? extends P> c) |
boolean |
addAll(int index,
Collection<? extends P> c) |
void |
clear() |
void |
ensureCapacity(int minCapacity) |
Iterator<P> |
iterator() |
ListIterator<P> |
listIterator() |
ListIterator<P> |
listIterator(int index) |
P |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super P> filter) |
protected void |
removeRange(int fromIndex,
int toIndex) |
void |
replaceAll(UnaryOperator<P> operator) |
boolean |
retainAll(Collection<?> c) |
P |
set(int index,
P element) |
void |
sort(Comparator<? super P> c) |
void |
trimToSize() |
filterclone, contains, forEach, get, indexOf, isEmpty, lastIndexOf, size, spliterator, subList, toArray, toArrayequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic UnmodifiableProblemList(ProblemList<P> problems)
public UnmodifiableProblemList()
public boolean add(P problem)
public void sort(Comparator<? super P> c)
public void replaceAll(UnaryOperator<P> operator)
replaceAll in interface List<P extends Problem>replaceAll in class ArrayList<P extends Problem>public ListIterator<P> listIterator()
listIterator in interface List<P extends Problem>listIterator in class ArrayList<P extends Problem>public ListIterator<P> listIterator(int index)
listIterator in interface List<P extends Problem>listIterator in class ArrayList<P extends Problem>public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
protected void removeRange(int fromIndex,
int toIndex)
removeRange in class ArrayList<P extends Problem>public boolean addAll(int index,
Collection<? extends P> c)
public boolean addAll(Collection<? extends P> c)
public void clear()
public boolean remove(Object o)
public P remove(int index)
public void add(int index,
P element)
public void ensureCapacity(int minCapacity)
ensureCapacity in class ArrayList<P extends Problem>public void trimToSize()
trimToSize in class ArrayList<P extends Problem>Copyright © 2017. All rights reserved.