T
- The type this class may hold, this is generic as can be anything that extends PriorityAware,
but intent is this is the QueueImpl:ConsumerHolder.public class QueueConsumersImpl<T extends PriorityAware> extends Object implements QueueConsumers<T>
Constructor and Description |
---|
QueueConsumersImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
void |
forEach(Consumer<? super T> action) |
Set<Integer> |
getPriorites() |
boolean |
hasNext() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
next() |
boolean |
remove(T t) |
void |
repeat()
If the current value should repeat.
|
void |
reset()
Resets the iterator so you can re-iterate over all elements.
|
int |
size() |
Spliterator<T> |
spliterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public boolean hasNext()
hasNext
in interface Iterator<T extends PriorityAware>
public T next()
next
in interface Iterator<T extends PriorityAware>
public void repeat()
RepeatableIterator
repeat
in interface RepeatableIterator<T extends PriorityAware>
public void reset()
ResettableIterator
reset
in interface ResettableIterator<T extends PriorityAware>
public boolean add(T t)
add
in interface QueueConsumers<T extends PriorityAware>
public boolean remove(T t)
remove
in interface QueueConsumers<T extends PriorityAware>
public int size()
size
in interface QueueConsumers<T extends PriorityAware>
public boolean isEmpty()
isEmpty
in interface QueueConsumers<T extends PriorityAware>
public Iterator<T> iterator()
iterator
in interface Iterable<T extends PriorityAware>
public void forEach(Consumer<? super T> action)
forEach
in interface Iterable<T extends PriorityAware>
public Spliterator<T> spliterator()
spliterator
in interface Iterable<T extends PriorityAware>
public Set<Integer> getPriorites()
getPriorites
in interface QueueConsumers<T extends PriorityAware>
Copyright © 2019 JBoss by Red Hat. All rights reserved.