Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.util
Class SortedList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<T>
                  extended by ch.elexis.util.SortedList<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Deque<T>, java.util.List<T>, java.util.Queue<T>

public class SortedList<T>
extends java.util.LinkedList<T>

See Also:
Serialized Form

Constructor Summary
SortedList(java.util.Collection<T> source, java.util.Comparator<T> comp)
           
SortedList(java.util.Comparator<T> comp)
           
 
Method Summary
 boolean add(T elem)
           
 void sort()
           
 
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, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

SortedList

public SortedList(java.util.Comparator<T> comp)

SortedList

public SortedList(java.util.Collection<T> source,
                  java.util.Comparator<T> comp)
Method Detail

sort

public void sort()

add

public boolean add(T elem)
Specified by:
add in interface java.util.Collection<T>
Specified by:
add in interface java.util.Deque<T>
Specified by:
add in interface java.util.List<T>
Specified by:
add in interface java.util.Queue<T>
Overrides:
add in class java.util.LinkedList<T>

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis