@Immutable public final class QueueHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENTTYPE> |
newQueue() |
static <ELEMENTTYPE> |
newQueue(Collection<? extends ELEMENTTYPE> aCont) |
static <ELEMENTTYPE> |
newQueue(Collection<? extends ELEMENTTYPE> aCollection,
Predicate<? super ELEMENTTYPE> aFilter) |
static <ELEMENTTYPE> |
newQueue(ELEMENTTYPE... aValues) |
static <ELEMENTTYPE> |
newQueue(ELEMENTTYPE aValue) |
static <ELEMENTTYPE> |
newQueue(Enumeration<? extends ELEMENTTYPE> aEnum)
Compared to
Collections.list(Enumeration) this method is more
flexible in Generics parameter. |
static <ELEMENTTYPE> |
newQueue(IIterableIterator<? extends ELEMENTTYPE> aIter) |
static <ELEMENTTYPE> |
newQueue(int nInitialCapacity) |
static <ELEMENTTYPE> |
newQueue(Iterable<? extends ELEMENTTYPE> aIter) |
static <ELEMENTTYPE> |
newQueue(Iterator<? extends ELEMENTTYPE> aIter) |
static <SRCTYPE,DSTTYPE> |
newQueueMapped(Collection<? extends SRCTYPE> aCollection,
Function<? super SRCTYPE,DSTTYPE> aMapper) |
static <SRCTYPE,DSTTYPE> |
newQueueMapped(SRCTYPE[] aArray,
Function<? super SRCTYPE,DSTTYPE> aMapper) |
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nonnegative int nInitialCapacity)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue()
@Nonnull @ReturnsMutableCopy public static <SRCTYPE,DSTTYPE> PriorityQueue<DSTTYPE> newQueueMapped(@Nullable Collection<? extends SRCTYPE> aCollection, @Nonnull Function<? super SRCTYPE,DSTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public static <SRCTYPE,DSTTYPE> PriorityQueue<DSTTYPE> newQueueMapped(@Nullable SRCTYPE[] aArray, @Nonnull Function<? super SRCTYPE,DSTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nonnull ELEMENTTYPE aValue)
@Nonnull @ReturnsMutableCopy @SafeVarargs public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable ELEMENTTYPE... aValues)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@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 PriorityQueue.Collections.list(Enumeration)@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable Iterator<? extends ELEMENTTYPE> aIter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable Iterable<? extends ELEMENTTYPE> aIter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable Collection<? extends ELEMENTTYPE> aCont)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable Collection<? extends ELEMENTTYPE> aCollection, @Nonnull Predicate<? super ELEMENTTYPE> aFilter)
@Nonnull @ReturnsMutableCopy public static <ELEMENTTYPE> PriorityQueue<ELEMENTTYPE> newQueue(@Nullable IIterableIterator<? extends ELEMENTTYPE> aIter)
Copyright © 2014–2017 Philip Helger. All rights reserved.