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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) booleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()booleanisFull()iterator()intlistIterator(int index) intmaxSize()remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()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, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
removeAll
-
retainAll
-
listIterator
- Specified by:
listIteratorin 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:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-