Class MaxCapacityQueue<E>
java.lang.Object
io.netty.handler.codec.http2.MaxCapacityQueue<E>
- All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, java.util.Queue<E>
final class MaxCapacityQueue<E>
extends java.lang.Object
implements java.util.Queue<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidclear()booleancontains(java.lang.Object o) booleancontainsAll(java.util.Collection<?> c) element()booleanisEmpty()java.util.Iterator<E> iterator()booleanpeek()poll()remove()booleanremove(java.lang.Object o) booleanremoveAll(java.util.Collection<?> c) booleanretainAll(java.util.Collection<?> c) intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, streamMethods inherited from interface java.lang.Iterable
forEach
-
Field Details
-
queue
-
maxCapacity
private final int maxCapacity
-
-
Constructor Details
-
MaxCapacityQueue
MaxCapacityQueue(java.util.Queue<E> queue, int maxCapacity)
-
-
Method Details
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
size
public int size()- Specified by:
sizein interfacejava.util.Collection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacejava.util.Collection<E>
-
contains
public boolean contains(java.lang.Object o) - Specified by:
containsin interfacejava.util.Collection<E>
-
iterator
-
toArray
public java.lang.Object[] toArray()- Specified by:
toArrayin interfacejava.util.Collection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfacejava.util.Collection<E>
-
remove
public boolean remove(java.lang.Object o) - Specified by:
removein interfacejava.util.Collection<E>
-
containsAll
public boolean containsAll(java.util.Collection<?> c) - Specified by:
containsAllin interfacejava.util.Collection<E>
-
addAll
-
removeAll
public boolean removeAll(java.util.Collection<?> c) - Specified by:
removeAllin interfacejava.util.Collection<E>
-
retainAll
public boolean retainAll(java.util.Collection<?> c) - Specified by:
retainAllin interfacejava.util.Collection<E>
-
clear
public void clear()- Specified by:
clearin interfacejava.util.Collection<E>
-