public class SortedList<T extends java.lang.Comparable<T>> extends java.util.PriorityQueue<T> implements ReifiedIterable<T>
Constructor and Description |
---|
SortedList()
Default constructor
|
SortedList(java.lang.Class<?> genericTypeParameter)
Constructor for initializing with the generic type parameter
|
SortedList(java.util.Comparator<? super T> comparator,
java.lang.Class<?> genericTypeParameter)
Constructor for initializing with the generic type parameter
|
SortedList(java.util.Comparator<? super T> comparator,
int initialSize)
Constructor initializes with an initial collection size.
|
SortedList(int initialSize)
Constructor initializes with an initial collection size.
|
SortedList(int initialSize,
java.lang.Class<?> genericTypeParameter)
Constructor initializes with an initial collection size and a generic type parameter.
|
SortedList(int initialSize,
java.util.Comparator<? super T> comparator,
java.lang.Class<?> genericTypeParameter)
Constructor initializes with an initial collection size and a generic type parameter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getGenericTypeParameter()
Returns the class generic type parameters.
|
java.util.Iterator<T> |
iterator()
Returns an ordered iterator of elements.
|
T[] |
toArray()
Returns an ordered copy of elements.
|
add, clear, comparator, contains, offer, peek, poll, remove, size, toArray
containsAll, isEmpty, removeAll, retainAll, toString
public SortedList()
SuperTypeTokenException
- When called without using anonymous class semantics.public SortedList(java.lang.Class<?> genericTypeParameter)
java.lang.NullPointerException
- When the generic type parameter is null.public SortedList(int initialSize)
SuperTypeTokenException
- When called without using anonymous class semantics.java.lang.IllegalArgumentException
- When the size is non positive.public SortedList(int initialSize, java.lang.Class<?> genericTypeParameter)
java.lang.IllegalArgumentException
- When the buffer size is non positive.java.lang.NullPointerException
- When the generic type parameter is null.public SortedList(java.util.Comparator<? super T> comparator, java.lang.Class<?> genericTypeParameter)
java.lang.NullPointerException
- When the generic type parameter is null.public SortedList(java.util.Comparator<? super T> comparator, int initialSize)
SuperTypeTokenException
- When called without using anonymous class semantics.java.lang.IllegalArgumentException
- When the size is non positive.public SortedList(int initialSize, java.util.Comparator<? super T> comparator, java.lang.Class<?> genericTypeParameter)
java.lang.IllegalArgumentException
- When the buffer size is non positive.java.lang.NullPointerException
- When the generic type parameter is null.public java.lang.Class<?> getGenericTypeParameter()
getGenericTypeParameter
in interface ReifiedIterable<T extends java.lang.Comparable<T>>
public java.util.Iterator<T> iterator()
public T[] toArray()