public interface HugeQueue<T>
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
boolean |
isFull() |
T |
offer()
Add to the end of a queue or return false if full.
|
boolean |
offer(T element)
Add to the end of a queue or return false if full.
|
void |
recycle(T element)
Recycle an element reference.
|
T |
take() |
boolean |
takeCopy(T element)
Copy data to an element
|
boolean isFull()
boolean isEmpty()
T offer()
boolean offer(T element)
element
- to addT take()
boolean takeCopy(T element)
element
- to copy tovoid recycle(T element)
element
- reference to recycle.Copyright © 2019. All rights reserved.