Package net.cscott.jutil
Class ListWrapper<E>
java.lang.Object
net.cscott.jutil.CollectionWrapper<E>
net.cscott.jutil.ListWrapper<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
ListWrapper is an abstract class designed to make it easier
to write wrappers around Lists.- Author:
- Felix S. Klock II <pnkfelix@mit.edu>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int i, Collection<? extends E> c) get(int i) intintlistIterator(int i) remove(int i) subList(int i, int j) wrapped()Implementations should return the wrappedListhere.Methods inherited from class net.cscott.jutil.CollectionWrapper
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ListWrapper
protected ListWrapper()Creates aListWrapper.
-
-
Method Details
-
wrapped
Implementations should return the wrappedListhere.- Specified by:
wrappedin classCollectionWrapper<E>- Since:
- 1.3
-
subList
-
get
-
set
-
remove
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
indexOf
-
addAll
-
add
-