Package ch.njol.util.coll
Class CyclicList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
ch.njol.util.coll.CyclicList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
@Deprecated(since="2.10.0",
forRemoval=true)
public final class CyclicList<E>
extends AbstractList<E>
Deprecated, for removal: This API element is subject to removal in a future version.
unused
A list with fixed size that overrides the oldest elements when new elements are added and no more space is available.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCyclicList(int size) Deprecated, for removal: This API element is subject to removal in a future version.CyclicList(E[] array) Deprecated, for removal: This API element is subject to removal in a future version.CyclicList(Collection<E> c) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanaddAll(int index, Collection<? extends E> c) Deprecated, for removal: This API element is subject to removal in a future version.booleanaddAll(Collection<? extends E> c) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidclear()Deprecated, for removal: This API element is subject to removal in a future version.get(int index) Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.intlastIndexOf(@Nullable Object o) Deprecated, for removal: This API element is subject to removal in a future version.remove(int index) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanremoveAll(@Nullable Collection<?> c) Deprecated, for removal: This API element is subject to removal in a future version.booleanretainAll(@Nullable Collection<?> c) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intsize()Deprecated, for removal: This API element is subject to removal in a future version.Object[]toArray()Deprecated, for removal: This API element is subject to removal in a future version.<T> T[]toArray(T[] array) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, toStringMethods 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
contains, containsAll, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
CyclicList
public CyclicList(int size) Deprecated, for removal: This API element is subject to removal in a future version. -
CyclicList
Deprecated, for removal: This API element is subject to removal in a future version. -
CyclicList
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
add
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractList<E>
-
addFirst
Deprecated, for removal: This API element is subject to removal in a future version. -
addLast
Deprecated, for removal: This API element is subject to removal in a future version. -
add
Deprecated, for removal: This API element is subject to removal in a future version. -
addAll
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>
-
addAll
Deprecated, for removal: This API element is subject to removal in a future version. -
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
indexOf
Deprecated, for removal: This API element is subject to removal in a future version. -
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceList<E>- Overrides:
isEmptyin classAbstractCollection<E>
-
lastIndexOf
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classAbstractList<E>
-
remove
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractCollection<E>
-
remove
Deprecated, for removal: This API element is subject to removal in a future version. -
removeAll
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classAbstractCollection<E>
-
retainAll
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classAbstractCollection<E>
-
set
Deprecated, for removal: This API element is subject to removal in a future version. -
size
public int size()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
toArray
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toArray
public <T> T[] toArray(@Nullable T[] array) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>- Overrides:
toArrayin classAbstractCollection<E>
-