Package com.epam.common.collections
Class SimpleBoundedQueue<E>
java.lang.Object
com.epam.common.collections.SimpleBoundedQueue<E>
- All Implemented Interfaces:
IBoundedQueue<E>
User: Nikita_Dobriukha
Date: 2015-08-24
Time: 15:20
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBoundedQueue
(boolean circular) SimpleBoundedQueue
(int size) SimpleBoundedQueue
(int size, boolean circular) -
Method Summary
-
Constructor Details
-
SimpleBoundedQueue
public SimpleBoundedQueue() -
SimpleBoundedQueue
public SimpleBoundedQueue(int size) -
SimpleBoundedQueue
public SimpleBoundedQueue(boolean circular) -
SimpleBoundedQueue
public SimpleBoundedQueue(int size, boolean circular)
-
-
Method Details
-
isCircular
public boolean isCircular() -
add
- Specified by:
add
in interfaceIBoundedQueue<E>
-
offer
- Specified by:
offer
in interfaceIBoundedQueue<E>
-
remove
- Specified by:
remove
in interfaceIBoundedQueue<E>
-
poll
- Specified by:
poll
in interfaceIBoundedQueue<E>
-
element
- Specified by:
element
in interfaceIBoundedQueue<E>
-
peek
- Specified by:
peek
in interfaceIBoundedQueue<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIBoundedQueue<E>
-
isFull
public boolean isFull()- Specified by:
isFull
in interfaceIBoundedQueue<E>
-
size
public int size()- Specified by:
size
in interfaceIBoundedQueue<E>
-
maxSize
public int maxSize()- Specified by:
maxSize
in interfaceIBoundedQueue<E>
-