Package org.svetovid.util
Class CompoundList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.svetovid.util.CompoundList<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addSublist
(List<E> list) get
(int index) getSublist
(int index) int
insertSublist
(int index, List<E> list) removeSublist
(int index) void
setSublist
(int index, List<E> list) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Constructor Details
-
CompoundList
public CompoundList() -
CompoundList
-
-
Method Details
-
getSublist
-
setSublist
-
addSublist
-
insertSublist
-
removeSublist
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
get
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in classAbstractCollection<E>
-