Documentation of 'jsat.utils.BoundedSortedList' Java class
BoundedSortedList
jsat.utils

Class BoundedSortedList<E extends java.lang.Comparable<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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean add(E e) 
      void add(int index, E element) 
      E first() 
      E last() 
      int maxSize()
      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
      • Methods inherited from class java.util.AbstractList

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
    • Constructor Detail

      • BoundedSortedList

        public BoundedSortedList(int maxSize,
                                 int initialCapacity)
      • BoundedSortedList

        public BoundedSortedList(int maxSize)
    • Method Detail

      • add

        public boolean add(E e)
        Specified by:
        add in interface java.util.Collection<E extends java.lang.Comparable<E>>
        Specified by:
        add in interface java.util.List<E extends java.lang.Comparable<E>>
        Overrides:
        add in class java.util.ArrayList<E extends java.lang.Comparable<E>>
      • first

        public E first()
      • last

        public E last()
      • add

        public void add(int index,
                        E element)
        Specified by:
        add in interface java.util.List<E extends java.lang.Comparable<E>>
        Overrides:
        add in class java.util.ArrayList<E extends java.lang.Comparable<E>>
      • maxSize

        public int maxSize()
        Returns the maximum size allowed for the bounded list
        Returns:
        the maximum size allowed for the bounded list

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.