Example usage for Java com.google.common.collect Queues fields, constructors, methods, implement or subclass
The text is from its open source code.
ArrayBlockingQueue | newArrayBlockingQueue(int capacity) Creates an empty ArrayBlockingQueue with the given (fixed) capacity and nonfair access policy. |
ArrayDeque | newArrayDeque(Iterable extends E> elements) Creates an ArrayDeque containing the elements of the specified iterable, in the order they are returned by the iterable's iterator. |
ArrayDeque | newArrayDeque() Creates an empty ArrayDeque . |
ConcurrentLinkedQueue | newConcurrentLinkedQueue() Creates an empty ConcurrentLinkedQueue . |
ConcurrentLinkedQueue | newConcurrentLinkedQueue(Iterable extends E> elements) Creates a ConcurrentLinkedQueue containing the elements of the specified iterable, in the order they are returned by the iterable's iterator. |
LinkedBlockingDeque | newLinkedBlockingDeque(int capacity) Creates an empty LinkedBlockingDeque with the given (fixed) capacity. |
LinkedBlockingDeque | newLinkedBlockingDeque(Iterable extends E> elements) Creates a LinkedBlockingDeque with a capacity of Integer#MAX_VALUE , containing the elements of the specified iterable, in the order they are returned by the iterable's iterator. |
LinkedBlockingDeque | newLinkedBlockingDeque() Creates an empty LinkedBlockingDeque with a capacity of Integer#MAX_VALUE . |
LinkedBlockingQueue | newLinkedBlockingQueue() Creates an empty LinkedBlockingQueue with a capacity of Integer#MAX_VALUE . |
LinkedBlockingQueue | newLinkedBlockingQueue(int capacity) Creates an empty LinkedBlockingQueue with the given (fixed) capacity. |
LinkedBlockingQueue | newLinkedBlockingQueue(Iterable extends E> elements) Creates a LinkedBlockingQueue with a capacity of Integer#MAX_VALUE , containing the elements of the specified iterable, in the order they are returned by the iterable's iterator. |
PriorityQueue | newPriorityQueue() Creates an empty PriorityQueue with the ordering given by its elements' natural ordering. |
Deque | synchronizedDeque(Deque Returns a synchronized (thread-safe) deque backed by the specified deque. |
Queue | synchronizedQueue(Queue Returns a synchronized (thread-safe) queue backed by the specified queue. |