@HashCodeAndEqualsPlugin.Enhance public class QueueFactory extends Object
Queue. For Java 5, a LinkedList is created whereas a
java.util.ArrayDeque is used for any future JVM version.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
QueueFactory.Dispatcher
A dispatcher for creating an
java.util.ArrayDeque. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Queue<T> |
make()
Creates a new queue.
|
static <T> Queue<T> |
make(Collection<? extends T> elements)
Creates a new queue.
|
public static <T> Queue<T> make()
T - The type of the queue elements.public static <T> Queue<T> make(Collection<? extends T> elements)
T - The type of the queue elements.elements - The elements to provide to the queue constructor.Copyright © 2014–2023. All rights reserved.