Class SortedList

  • All Implemented Interfaces:, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Deque, java.util.List, java.util.Queue

    public class SortedList
    extends java.util.LinkedList
    This class is a sorted implementation of the List interface. The objects added must implement the Comparable interface.
    $Revision: 27751 $
    Olivier Dedieu
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String REVISION  
      • Fields inherited from class java.util.AbstractList

    • Constructor Summary

      Constructor Description
      SortedList​(java.util.Collection c)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.Object obj)  
      • Methods inherited from class java.util.LinkedList

        add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
      • Methods inherited from class java.util.AbstractSequentialList

      • Methods inherited from class java.util.AbstractList

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

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

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

      • Methods inherited from interface java.lang.Iterable

      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • Constructor Detail

      • SortedList

        public SortedList()
      • SortedList

        public SortedList​(java.util.Collection c)
    • Method Detail

      • add

        public boolean add​(java.lang.Object obj)
        Specified by:
        add in interface java.util.Collection
        Specified by:
        add in interface java.util.Deque
        Specified by:
        add in interface java.util.List
        Specified by:
        add in interface java.util.Queue
        add in class java.util.LinkedList