Class IntArrayQueue
- java.lang.Object
-
- com.google.android.exoplayer2.util.IntArrayQueue
-
public final class IntArrayQueue extends Object
-
-
Constructor Summary
Constructors Constructor Description IntArrayQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int value)Add a new item to the queue.intcapacity()Returns the length of the backing array.voidclear()Clears the queue.booleanisEmpty()Returns whether the queue is empty.intremove()Remove an item from the queue.intsize()Returns the number of items in the queue.
-
-
-
Method Detail
-
add
public void add(int value)
Add a new item to the queue.
-
remove
public int remove()
Remove an item from the queue.- Throws:
NoSuchElementException- if the queue is empty.
-
size
public int size()
Returns the number of items in the queue.
-
isEmpty
public boolean isEmpty()
Returns whether the queue is empty.
-
clear
public void clear()
Clears the queue.
-
capacity
public int capacity()
Returns the length of the backing array.
-
-