Package eu.bandm.tools.util.nonnull
Class NonNullList.ListProxy<T>
java.lang.Object
eu.bandm.tools.util.nonnull.NonNullList.ListProxy<T>
- Type Parameters:
T- the types of the elements.
- All Implemented Interfaces:
Nullfree,NonNullList<T>,Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
- Enclosing interface:
NonNullList<T>
Auxiliary class, not accessible by the user, which intercepts
all modification to guarantee nullfree.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.tools.util.nonnull.NonNullList
NonNullList.ListProxy<T>, NonNullList.NonNullListIterator<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
peer
The object from JDK runtime which makes the real work.
-
-
Constructor Details
-
ListProxy
Sole constructor.- Parameters:
peer- the object from JDK runtime which makes the real work.- Throws:
NullPointerException- if the argument is null.
-
-
Method Details
-
toString
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <U> U[] toArray(U[] a)
-