ELEMENTTYPE - List element typepublic class CommonsVector<ELEMENTTYPE> extends Vector<ELEMENTTYPE> implements ICommonsList<ELEMENTTYPE>
Vector implementation based on ICommonsList.capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
CommonsVector() |
CommonsVector(Collection<? extends ELEMENTTYPE> aCont) |
CommonsVector(Collection<? extends SRCTYPE> aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
CommonsVector(ELEMENTTYPE... aValues) |
CommonsVector(ELEMENTTYPE aValue) |
CommonsVector(int nInitialCapacity) |
CommonsVector(Iterable<? extends ELEMENTTYPE> aIterable) |
CommonsVector(Iterable<? extends SRCTYPE> aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
CommonsVector(SRCTYPE[] aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENTTYPE> |
createFiltered(ELEMENTTYPE[] aValues,
Predicate<? super ELEMENTTYPE> aFilter) |
static <ELEMENTTYPE> |
createFiltered(Iterable<? extends ELEMENTTYPE> aValues,
Predicate<? super ELEMENTTYPE> aFilter) |
static <SRCTYPE,ELEMENTTYPE> |
createFiltered(Iterable<? extends SRCTYPE> aValues,
Predicate<? super SRCTYPE> aFilter,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
static <SRCTYPE,ELEMENTTYPE> |
createFiltered(SRCTYPE[] aValues,
Predicate<? super SRCTYPE> aFilter,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
<T> CommonsVector<T> |
createInstance()
Create a new empty list.
|
CommonsVector<ELEMENTTYPE> |
getClone() |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitgetAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItemsadd, 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, toArrayaddAll, 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, setAllMappedparallelStream, removeIf, streamcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCountisEmpty, isNotEmpty, sizepublic CommonsVector()
public CommonsVector(@Nonnegative int nInitialCapacity)
public CommonsVector(@Nullable Collection<? extends ELEMENTTYPE> aCont)
public CommonsVector(@Nullable Iterable<? extends ELEMENTTYPE> aIterable)
public CommonsVector(@Nullable Collection<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
public CommonsVector(@Nullable Iterable<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
public CommonsVector(@Nullable ELEMENTTYPE aValue)
@SafeVarargs public CommonsVector(@Nullable ELEMENTTYPE... aValues)
public CommonsVector(@Nullable SRCTYPE[] aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public <T> CommonsVector<T> createInstance()
ICommonsListCommonsArrayList.createInstance in interface ICommonsList<ELEMENTTYPE>T - List element typenull.@Nonnull @ReturnsMutableCopy public CommonsVector<ELEMENTTYPE> getClone()
getClone in interface ICloneable<ICommonsList<ELEMENTTYPE>>@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> createFiltered(@Nullable Iterable<? extends ELEMENTTYPE> aValues, @Nullable Predicate<? super ELEMENTTYPE> aFilter)
@Nonnull @ReturnsMutableCopy public static <SRCTYPE,ELEMENTTYPE> CommonsVector<ELEMENTTYPE> createFiltered(@Nullable Iterable<? extends SRCTYPE> aValues, @Nullable Predicate<? super SRCTYPE> aFilter, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> createFiltered(@Nullable ELEMENTTYPE[] aValues, @Nullable Predicate<? super ELEMENTTYPE> aFilter)
@Nonnull @ReturnsMutableCopy public static <SRCTYPE,ELEMENTTYPE> CommonsVector<ELEMENTTYPE> createFiltered(@Nullable SRCTYPE[] aValues, @Nullable Predicate<? super SRCTYPE> aFilter, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
Copyright © 2014–2022 Philip Helger. All rights reserved.