com.scottlogic.util
Class NaturalSortedList<T extends java.lang.Comparable<? super T>>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by com.scottlogic.util.SortedList<T>
              extended by com.scottlogic.util.NaturalSortedList<T>
Type Parameters:
T - any Comparable
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

public class NaturalSortedList<T extends java.lang.Comparable<? super T>>
extends SortedList<T>

Provides a SortedList which sorts the elements by their natural order.

Version:
1.1
Author:
Mark Rhodes
See Also:
SortedList, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.scottlogic.util.SortedList
SortedList.Node
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NaturalSortedList()
          Constructs a new NaturalSortedList which sorts elements according to their natural order.
 
Method Summary
 
Methods inherited from class com.scottlogic.util.SortedList
add, add, clear, contains, findFirstNodeWithValue, findNodeAtIndex, get, getRoot, isEmpty, iterator, remove, remove, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, removeAll, retainAll
 

Constructor Detail

NaturalSortedList

public NaturalSortedList()
Constructs a new NaturalSortedList which sorts elements according to their natural order.