public class FIFOBoundedList<E> extends Object implements Collection<E>, List<E>
Constructor and Description |
---|
FIFOBoundedList() |
FIFOBoundedList(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isFull() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
int |
maxSize() |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public FIFOBoundedList(int maxSize)
public FIFOBoundedList()
public boolean add(E o)
public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index, Collection<? extends E> c)
public boolean isFull()
public int maxSize()
public boolean isEmpty()
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public ListIterator<E> listIterator()
listIterator
in interface List<E>
public boolean equals(Object o)
public int hashCode()
public boolean contains(Object o)
public int size()
public boolean remove(Object o)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public Object[] toArray()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.