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.
A dispatcher for creating an |
| Modifier and Type | Field and Description |
|---|---|
| private final QueueFactory. | dispatcher
The dispatcher to use. |
| private static final QueueFactory | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static < The type of the action's resolved value. T> T | Returns: The action's resolved value.The action to execute from a privileged context. action)A proxy for |
| public static < The type of the queue elements. T> Queue | |
| public static < The type of the queue elements. T> Queue | Returns: An appropriate queue.The elements to provide to the queue constructor. elements)Creates a new queue. |
| dispatcher | back to summary |
|---|---|
| private final QueueFactory. The dispatcher to use. | |
| INSTANCE | back to summary |
|---|---|
| private static final QueueFactory INSTANCE The singleton instance. | |
| QueueFactory | back to summary |
|---|---|
| private QueueFactory() Creates a new queue factory. | |
| doPrivileged | back to summary |
|---|---|
| private static <T> T doPrivileged(PrivilegedAction<T> action) A proxy for
| |
| make | back to summary |
|---|---|
| public static <T> Queue Creates a new queue.
| |
| make | back to summary |
|---|---|
| public static <T> Queue Creates a new queue.
| |
java.util.ArrayDeque.
| Modifier and Type | Method and Description |
|---|---|
| public < The type of the action's resolved value. T> Queue | Returns: An array deque ornull if this class is not supplied by the current VM.Creates a new array deque. |
| public < The type of the action's resolved value. T> Queue | Returns: An array deque ornull if this class is not supplied by the current VM.The elements to provide to the queue constructor. elements)Creates a new array deque. |
| arrayDeque | back to summary |
|---|---|
| public <T> Queue Creates a new array deque.
| |
| arrayDeque | back to summary |
|---|---|
| public <T> Queue Creates a new array deque.
| |