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

Class BoundedSortedSet<V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<V>, java.util.Collection<V>, java.util.NavigableSet<V>, java.util.Set<V>, java.util.SortedSet<V>


    public class BoundedSortedSet<V>
    extends java.util.TreeSet<V>
    A Sorted set that has a maximum number of values it will hold.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean add(V e) 
      boolean addAll(java.util.Collection<? extends V> clctn) 
      int getMaxSize()
      Returns the maximum size allowed for the bounded set
      • Methods inherited from class java.util.TreeSet

        ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
      • Methods inherited from class java.util.AbstractSet

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

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

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

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

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • BoundedSortedSet

        public BoundedSortedSet(int max)
      • BoundedSortedSet

        public BoundedSortedSet(int max,
                                java.util.Comparator<? super V> cmp)
    • Method Detail

      • add

        public boolean add(V e)
        Specified by:
        add in interface java.util.Collection<V>
        Specified by:
        add in interface java.util.Set<V>
        Overrides:
        add in class java.util.TreeSet<V>
      • addAll

        public boolean addAll(java.util.Collection<? extends V> clctn)
        Specified by:
        addAll in interface java.util.Collection<V>
        Specified by:
        addAll in interface java.util.Set<V>
        Overrides:
        addAll in class java.util.TreeSet<V>
      • getMaxSize

        public int getMaxSize()
        Returns the maximum size allowed for the bounded set
        Returns:
        the maximum size allowed for the bounded set

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.