Class FIFOBoundedList<E>
java.lang.Object
com.atlassian.bamboo.utils.collection.FIFOBoundedList<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
A FIFO bounded list beacked by a linkedlist. Is not thread saffe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
get
(int index) int
hashCode()
int
boolean
isEmpty()
boolean
isFull()
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) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
FIFOBoundedList
public FIFOBoundedList(int maxSize) -
FIFOBoundedList
public FIFOBoundedList()
-
-
Method Details
-
add
-
addAll
-
addAll
-
set
-
add
-
isFull
public boolean isFull() -
maxSize
public int maxSize() -
isEmpty
public boolean isEmpty() -
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
removeAll
-
retainAll
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-
equals
-
hashCode
public int hashCode() -
iterator
-
contains
-
size
public int size() -
remove
-
clear
public void clear() -
get
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-