Class IndexList<E>
java.lang.Object
ru.cwcode.cwutils.collections.indexList.IndexList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
-
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) booleanvoidget(int index) inthashCode()intbooleanisEmpty()iterator()int@NotNull ListIterator<E>@NotNull ListIterator<E>listIterator(int index) protected voidprotected voidnotifyRemove(E removed) voidregisterIndex(@NotNull Index<?, E> index) 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> @NotNull T[]toArray(@NotNull T[] a) <T> T[]toArray(IntFunction<T[]> generator)
-
Constructor Details
-
IndexList
-
-
Method Details
-
registerIndex
-
add
-
remove
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @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
-