Class TransformQueue<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformIterable<E,W>
com.aoapps.collections.transformers.TransformCollection<E,W>
com.aoapps.collections.transformers.TransformQueue<E,W>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Queue<E>
- Direct Known Subclasses:
TransformDeque
Wraps a
Queue
, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformIterable
transformer
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransformQueue
(Queue<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionelement()
static <E> TransformQueue
<E, E> static <E,
W> TransformQueue <E, W> of
(Queue<W> queue, Transformer<E, W> transformer) Wraps a queue.boolean
peek()
poll()
remove()
Methods inherited from class com.aoapps.collections.transformers.TransformCollection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, of, of, remove, removeAll, removeIf, retainAll, size, toArray, toArray
Methods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, of
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
TransformQueue
-
-
Method Details
-
of
Wraps a queue.- If the given queue is a
Deque
, then will return aTransformDeque
.
- See Also:
- If the given queue is a
-
of
- See Also:
-
getWrapped
- Overrides:
getWrapped
in classTransformCollection<E,
W>
-
offer
-
remove
-
poll
-
element
-
peek
-