public class ReifiedLinkedList<T> extends java.util.LinkedList<T> implements ReifiedList<T>
Constructor and Description |
---|
ReifiedLinkedList()
Default constructor.
|
ReifiedLinkedList(java.lang.Class<?> genericTypeParameter)
Constructor for initializing with the generic type parameter
|
ReifiedLinkedList(java.lang.Iterable<? extends T> values)
Constructor initializes from another collection
|
ReifiedLinkedList(java.lang.Iterable<? extends T> values,
java.lang.Class<?> genericTypeParameter)
Constructor initializes from another collection and a generic type parameter
|
ReifiedLinkedList(ReifiedIterable<T> values)
Constructor initializes from another reified collection
|
ReifiedLinkedList(T[] array)
Constructor initializes from an array
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(T[] array)
Appends all of the elements in the specified array to the end of this list, in the order that they are ordered.
|
java.lang.Class<?> |
getGenericTypeParameter()
Returns the class generic type parameters.
|
ReifiedList<T> |
subList(int fromIndex,
int toIndex)
Creates a sub-list from this list.
|
T[] |
toArray()
Returns all elements in an array copy.
|
ReifiedList<T> |
toList()
Returns a copy of this list.
|
add, 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
containsAll, isEmpty, removeAll, retainAll, toString
public ReifiedLinkedList()
SuperTypeTokenException
- When called without using anonymous class semantics.public ReifiedLinkedList(java.lang.Class<?> genericTypeParameter)
java.lang.NullPointerException
- When the generic type parameter is null.public ReifiedLinkedList(ReifiedIterable<T> values)
java.lang.NullPointerException
- When the argument is null.public ReifiedLinkedList(java.lang.Iterable<? extends T> values)
SuperTypeTokenException
- When called without using anonymous class semantics.java.lang.NullPointerException
- When the argument is nullpublic ReifiedLinkedList(java.lang.Iterable<? extends T> values, java.lang.Class<?> genericTypeParameter)
java.lang.NullPointerException
- When an argument is null.public ReifiedLinkedList(T[] array)
java.lang.NullPointerException
- When an argument is null.public boolean addAll(T[] array)
addAll
in interface ReifiedList<T>
java.lang.NullPointerException
- If the array is null.public java.lang.Class<?> getGenericTypeParameter()
getGenericTypeParameter
in interface ReifiedIterable<T>
public ReifiedList<T> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<T>
subList
in interface ReifiedList<T>
subList
in class java.util.AbstractList<T>
public T[] toArray()
public ReifiedList<T> toList()