@User public class CheckedListPlus<T> extends CheckedList<T>
Modifier and Type | Class and Description |
---|---|
class |
CheckedListPlus.CheckedListPlusIterator |
CheckedList.CheckedListIterator, CheckedList.implementations
peer
Constructor and Description |
---|
CheckedListPlus(CheckedList.implementations implementation,
List<? extends T> prototype)
Create a list checked against null values and being empty.
|
CheckedListPlus(CheckedList.implementations implementation,
T... data)
Create a list checked against null values and being empty.
|
CheckedListPlus(List<? extends T> prototype)
Create a list checked
ArrayList against null values and being empty. |
CheckedListPlus(T... data)
Create a list checked
ArrayList against null values and being empty. |
Modifier and Type | Method and Description |
---|---|
protected static <U> void |
checkNotEmpty(List<U> list) |
protected static <U> void |
checkNotNearlyEmpty(List<U> list) |
void |
clear()
Not possible!
|
void |
clearAndAdd(T t)
Set list to a singleton list.
|
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
List<T> |
subList(int fromIndex,
int toIndex) |
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, set, singleton, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
@User public CheckedListPlus(CheckedList.implementations implementation, List<? extends T> prototype)
CheckedList
for details on the implementation selection.IllegalArgumentException
- if a null value is contained in the prototype,
of if it is empty.@User public CheckedListPlus(List<? extends T> prototype)
ArrayList
against null values and being empty.
See superclass CheckedList
for details on the implementation selection.IllegalArgumentException
- if a null value is contained in the prototype,
of if it is empty.@User @SafeVarargs public CheckedListPlus(CheckedList.implementations implementation, T... data)
CheckedList
for details on the implementation selection.IllegalArgumentException
- if a null value is contained in the prototype,
of if it is empty.@User @SafeVarargs public CheckedListPlus(T... data)
ArrayList
against null values and being empty.
See superclass CheckedList
for details on the implementation selection.IllegalArgumentException
- if a null value is contained in the prototype,
of if it is empty.protected static <U> void checkNotEmpty(List<U> list)
protected static <U> void checkNotNearlyEmpty(List<U> list)
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class CheckedList<T>
UnsupportedOperationException
- since this kind of list may never
become empty.public void clearAndAdd(T t)
IllegalArgumentException
- if null is tried to enter.@User public ListIterator<T> listIterator()
listIterator
in interface List<T>
listIterator
in class CheckedList<T>
@User public ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
listIterator
in class CheckedList<T>
@User public boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface List<T>
remove
in class CheckedList<T>
@User public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
removeAll
in class CheckedList<T>
@User public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
retainAll
in class CheckedList<T>
see also the complete user documentation .