public class FixedSizeRollingList<E>
extends java.util.AbstractList<E>
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE |
Constructor and Description |
---|
FixedSizeRollingList() |
FixedSizeRollingList(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
E |
get(int index) |
int |
getMaxSize() |
E |
remove(int index) |
E |
set(int index,
E element) |
int |
size() |
clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public static final int DEFAULT_MAX_SIZE
public FixedSizeRollingList()
public FixedSizeRollingList(int maxSize)
public E get(int index)
public int size()
public boolean add(E e)
public void add(int index, E element)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean addAll(int index, java.util.Collection<? extends E> c)
public E remove(int index)
public int getMaxSize()
Copyright © 2015 The Admin4J Project. All Rights Reserved.