jsat.utils
Class BoundedSortedList<E extends java.lang.Comparable<E>>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- jsat.utils.BoundedSortedList<E>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
public class BoundedSortedList<E extends java.lang.Comparable<E>> extends java.util.ArrayList<E> implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BoundedSortedList(int maxSize)BoundedSortedList(int maxSize, int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(E e)voidadd(int index, E element)Efirst()Elast()intmaxSize()Returns the maximum size allowed for the bounded list-
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
BoundedSortedList
public BoundedSortedList(int maxSize, int initialCapacity)
-
BoundedSortedList
public BoundedSortedList(int maxSize)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG