Package eu.bandm.tools.util.nonnull
Class NonNullList.ListProxy<T2>
java.lang.Object
eu.bandm.tools.util.nonnull.NonNullList.ListProxy<T2>
- All Implemented Interfaces:
NonNullList<T2>,Iterable<T2>,Collection<T2>,List<T2>,SequencedCollection<T2>
- Enclosing interface:
NonNullList<T>
Internal proxy which inserts the checks for non-null into
all state-changing methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.tools.util.nonnull.NonNullList
NonNullList.ListProxy<T2>, NonNullList.NonNullListIterator<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T2> c) booleanaddAll(Collection<? extends T2> 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()<T1> T1[]toArray(T1[] 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
-
-
Constructor Details
-
ListProxy
-
-
Method Details
-
toString
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T2>- Specified by:
containsAllin interfaceList<T2>
-
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T2>
-
listIterator
- Specified by:
listIteratorin interfaceList<T2>
-
listIterator
- Specified by:
listIteratorin interfaceList<T2>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T1> T1[] toArray(T1[] a)
-