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
ConstructorsModifierConstructorDescriptionprotectedTransformQueue(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.booleanpeek()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, toArrayMethods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, ofMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getWrappedin classTransformCollection<E,W>
-
offer
-
remove
-
poll
-
element
-
peek
-
