Package org.ujmp.core.collections
Class RingBufferList<A>
java.lang.Object
org.ujmp.core.collections.RingBufferList<A>
- All Implemented Interfaces:
Serializable
,Iterable<A>
,Collection<A>
,List<A>
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final long
private int
private Object[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends A> c) boolean
addAll
(Collection<? extends A> c) void
void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) int
maxSize()
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
start
private int start -
end
private int end -
values
-
-
Constructor Details
-
RingBufferList
public RingBufferList() -
RingBufferList
public RingBufferList(int maximumSize)
-
-
Method Details
-
maxSize
public int maxSize() -
add
-
size
public int size() -
toString
-
addFirst
-
get
-
set
-
clear
public void clear() -
add
-
addAll
-
addAll
-
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<A>
- Specified by:
containsAll
in interfaceList<A>
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
-
remove
-
remove
-
removeAll
-
retainAll
-
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-