Class FIFOBoundedList<E>
- java.lang.Object
-
- com.atlassian.bamboo.utils.collection.FIFOBoundedList<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
public class FIFOBoundedList<E> extends Object implements Collection<E>, List<E>
A FIFO bounded list beacked by a linkedlist. Is not thread saffe
-
-
Constructor Summary
Constructors Constructor Description FIFOBoundedList()FIFOBoundedList(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E o)booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)Eget(int index)inthashCode()intindexOf(Object o)booleanisEmpty()booleanisFull()Iterator<E>iterator()intlastIndexOf(Object o)ListIterator<E>listIterator()ListIterator<E>listIterator(int index)intmaxSize()Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Eset(int index, E element)intsize()List<E>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
-
-
-
-
Method Detail
-
add
public boolean add(E o)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
isFull
public boolean isFull()
-
maxSize
public int maxSize()
-
isEmpty
public boolean isEmpty()
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIteratorin interfaceList<E>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
contains
public boolean contains(Object o)
-
size
public int size()
-
remove
public boolean remove(Object o)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>
-
toArray
public Object[] toArray()
-
-