public class SimpleBoundedQueue<E> extends Object implements IBoundedQueue<E>
Constructor and Description |
---|
SimpleBoundedQueue() |
SimpleBoundedQueue(boolean circular) |
SimpleBoundedQueue(int size) |
SimpleBoundedQueue(int size,
boolean circular) |
public SimpleBoundedQueue()
public SimpleBoundedQueue(int size)
public SimpleBoundedQueue(boolean circular)
public SimpleBoundedQueue(int size, boolean circular)
public boolean isCircular()
public boolean add(E e)
add
in interface IBoundedQueue<E>
public boolean offer(E e)
offer
in interface IBoundedQueue<E>
public E remove()
remove
in interface IBoundedQueue<E>
public E poll()
poll
in interface IBoundedQueue<E>
public E element()
element
in interface IBoundedQueue<E>
public E peek()
peek
in interface IBoundedQueue<E>
public boolean isEmpty()
isEmpty
in interface IBoundedQueue<E>
public boolean isFull()
isFull
in interface IBoundedQueue<E>
public int size()
size
in interface IBoundedQueue<E>
public int maxSize()
maxSize
in interface IBoundedQueue<E>
Copyright © 2000–2022 EPAM Systems. All rights reserved.