Package ru.cwcode.cwutils.collections
Class IndexList<E>
java.lang.Object
ru.cwcode.cwutils.collections.IndexList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, @NotNull Collection<? extends E> c) booleanaddAll(@NotNull Collection<? extends E> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) <K> IndexList.Index<K, E> createIndex(Function<E, K> keyExtractor) booleanvoidget(int index) inthashCode()intbooleanisEmpty()iterator()int@NotNull ListIterator<E> @NotNull ListIterator<E> listIterator(int index) protected voidprotected voidnotifyRemove(E removed) remove(int index) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanvoidreplaceAll(UnaryOperator<E> operator) booleanretainAll(@NotNull Collection<?> c) intsize()voidsort(Comparator<? super E> c) stream()subList(int fromIndex, int toIndex) @NotNull Object[]toArray()<T> T[]toArray(IntFunction<T[]> generator) <T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Constructor Details
-
IndexList
-
-
Method Details
-
createIndex
-
add
-
remove
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <T> T[] toArray(@NotNull T[] a) -
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
replaceAll
- Specified by:
replaceAllin interfaceList<E>
-
sort
-
clear
public void clear() -
equals
-
hashCode
public int hashCode() -
get
-
set
-
add
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceList<E>
-
forEach
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<E>
-
stream
- Specified by:
streamin interfaceCollection<E>
-
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
notifyRemove
-
notifyAdd
-