Class CommonsLinkedList<ELEMENTTYPE>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<ELEMENTTYPE>
-
- com.helger.commons.collection.impl.CommonsLinkedList<ELEMENTTYPE>
-
- Type Parameters:
ELEMENTTYPE- List element type
- All Implemented Interfaces:
ICommonsCollection<ELEMENTTYPE>,ICommonsIterable<ELEMENTTYPE>,ICommonsList<ELEMENTTYPE>,ICloneable<ICommonsList<ELEMENTTYPE>>,IHasSize,Serializable,Cloneable,Iterable<ELEMENTTYPE>,Collection<ELEMENTTYPE>,Deque<ELEMENTTYPE>,List<ELEMENTTYPE>,Queue<ELEMENTTYPE>
public class CommonsLinkedList<ELEMENTTYPE> extends LinkedList<ELEMENTTYPE> implements ICommonsList<ELEMENTTYPE>
A specialLinkedListimplementation based onICommonsList.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CommonsLinkedList()CommonsLinkedList(ELEMENTTYPE aValue)CommonsLinkedList(ELEMENTTYPE... aValues)CommonsLinkedList(Iterable<? extends ELEMENTTYPE> aIterable)CommonsLinkedList(Iterable<? extends SRCTYPE> aValues, Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)CommonsLinkedList(Collection<? extends ELEMENTTYPE> aCont)CommonsLinkedList(SRCTYPE[] aValues, Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> CommonsLinkedList<T>createInstance()Create a new empty list.CommonsLinkedList<ELEMENTTYPE>getClone()-
Methods inherited from class java.util.LinkedList
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, spliterator, toArray, toArray
-
Methods inherited from class java.util.AbstractSequentialList
iterator
-
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 com.helger.commons.collection.impl.ICommonsCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMapped
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItems
-
Methods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Constructor Detail
-
CommonsLinkedList
public CommonsLinkedList()
-
CommonsLinkedList
public CommonsLinkedList(@Nullable Collection<? extends ELEMENTTYPE> aCont)
-
CommonsLinkedList
public CommonsLinkedList(@Nullable Iterable<? extends ELEMENTTYPE> aIterable)
-
CommonsLinkedList
public CommonsLinkedList(@Nullable Iterable<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
-
CommonsLinkedList
public CommonsLinkedList(@Nullable ELEMENTTYPE aValue)
-
CommonsLinkedList
@SafeVarargs public CommonsLinkedList(@Nullable ELEMENTTYPE... aValues)
-
CommonsLinkedList
public CommonsLinkedList(@Nullable SRCTYPE[] aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
-
-
Method Detail
-
createInstance
@Nonnull @ReturnsMutableCopy public <T> CommonsLinkedList<T> createInstance()
Description copied from interface:ICommonsListCreate a new empty list. Overwrite this if you don't want to useCommonsArrayList.- Specified by:
createInstancein interfaceICommonsList<ELEMENTTYPE>- Type Parameters:
T- List element type- Returns:
- A new empty list. Never
null.
-
getClone
@Nonnull @ReturnsMutableCopy public CommonsLinkedList<ELEMENTTYPE> getClone()
- Specified by:
getClonein interfaceICloneable<ELEMENTTYPE>- Returns:
- A 100% deep-copy of the implementing class.
-
-