@Immutable public final class VectorHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENTTYPE> |
newVector() |
static <ELEMENTTYPE> |
newVector(Collection<? extends ELEMENTTYPE> aCont) |
static <ELEMENTTYPE> |
newVector(Collection<? extends ELEMENTTYPE> aCollection,
Predicate<? super ELEMENTTYPE> aFilter) |
static <ELEMENTTYPE> |
newVector(ELEMENTTYPE... aValues) |
static <ELEMENTTYPE> |
newVector(ELEMENTTYPE aValue) |
static <ELEMENTTYPE> |
newVector(Enumeration<? extends ELEMENTTYPE> aEnum)
Compared to
Collections.list(Enumeration) this method is more
flexible in Generics parameter. |
static <ELEMENTTYPE> |
newVector(IIterableIterator<? extends ELEMENTTYPE> aIter) |
static <ELEMENTTYPE> |
newVector(int nInitialCapacity) |
static <ELEMENTTYPE> |
newVector(Iterable<? extends ELEMENTTYPE> aIter) |
static <ELEMENTTYPE> |
newVector(Iterator<? extends ELEMENTTYPE> aIter) |
static <SRCTYPE,DSTTYPE> |
newVectorMapped(Collection<? extends SRCTYPE> aCollection,
Function<? super SRCTYPE,DSTTYPE> aMapper) |
static <ELEMENTTYPE> |
newVectorPrefilled(ELEMENTTYPE aValue,
int nElements) |
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nonnegative int nInitialCapacity)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector()
@Nonnull @ReturnsMutableCopy public static <SRCTYPE,DSTTYPE> CommonsVector<DSTTYPE> newVectorMapped(@Nullable Collection<? extends SRCTYPE> aCollection, @Nonnull Function<? super SRCTYPE,DSTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable Collection<? extends ELEMENTTYPE> aCollection, @Nonnull Predicate<? super ELEMENTTYPE> aFilter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVectorPrefilled(@Nullable ELEMENTTYPE aValue, @Nonnegative int nElements)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable ELEMENTTYPE aValue)
@Nonnull @ReturnsMutableCopy @SafeVarargs public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable ELEMENTTYPE... aValues)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable Enumeration<? extends ELEMENTTYPE> aEnum)
Collections.list(Enumeration) this method is more
flexible in Generics parameter.ELEMENTTYPE - Type of the elementsaEnum - The enumeration to be convertednull created CommonsVector.Collections.list(Enumeration)@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable Iterator<? extends ELEMENTTYPE> aIter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable Iterable<? extends ELEMENTTYPE> aIter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable Collection<? extends ELEMENTTYPE> aCont)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> CommonsVector<ELEMENTTYPE> newVector(@Nullable IIterableIterator<? extends ELEMENTTYPE> aIter)
Copyright © 2014–2016 Philip Helger. All rights reserved.