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, 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
ConstructorDescriptionCyclicList
(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 TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
addAll
(int index, Collection<? extends E> c) Deprecated, for removal: This API element is subject to removal in a future version.boolean
addAll
(Collection<? extends E> c) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
clear()
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.int
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.int
lastIndexOf
(@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.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
removeAll
(@Nullable Collection<?> c) Deprecated, for removal: This API element is subject to removal in a future version.boolean
retainAll
(@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.int
size()
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, subList
Methods inherited from class java.util.AbstractCollection
contains, containsAll, 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
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:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in 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:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in 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:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in 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:
isEmpty
in interfaceCollection<E>
- Specified by:
isEmpty
in interfaceList<E>
- Overrides:
isEmpty
in classAbstractCollection<E>
-
lastIndexOf
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lastIndexOf
in interfaceList<E>
- Overrides:
lastIndexOf
in classAbstractList<E>
-
remove
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in 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:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
retainAll
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in 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:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
toArray
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in 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:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in classAbstractCollection<E>
-