public class HashIndexedQueue<E> extends AbstractQueue<E>
Modifier and Type | Class and Description |
---|---|
class |
HashIndexedQueue.Iterator |
Constructor and Description |
---|
HashIndexedQueue()
Create a new instance of the
HashIndexedQueue . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
clear() |
boolean |
contains(Object o) |
HashIndexedQueue.Iterator |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
int |
size() |
addAll, element, remove
containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, parallelStream, removeIf, retainAll, spliterator, stream, toArray, toArray
public HashIndexedQueue()
HashIndexedQueue
.public boolean add(E e)
add
in interface Collection<E>
add
in interface Queue<E>
add
in class AbstractQueue<E>
public boolean offer(E e)
public E poll()
public E peek()
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in class AbstractCollection<E>
public int size()
size
in interface Collection<E>
size
in class AbstractCollection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
contains
in class AbstractCollection<E>
@NotNull public HashIndexedQueue.Iterator iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in class AbstractCollection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in class AbstractQueue<E>
Copyright © 2025 lettuce.io. All rights reserved.