| Constructor and Description |
|---|
TestInbox() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object o)
Convenience for
inbox.queue().add(o) |
void |
addAll(Collection<?> collection)
Convenience for
inbox.queue().addAll(collection) |
void |
clear()
Convenience for
inbox.queue().clear() |
boolean |
isEmpty()
Returns
true if this inbox contains no elements, false otherwise. |
Object |
peek()
Retrieves, but does not remove, the head of this inbox, or returns
null if it is empty. |
Object |
poll()
Retrieves and removes the head of this inbox, or returns
null
if it is empty. |
Deque<Object> |
queue()
Retrieves the queue backing the inbox.
|
void |
remove()
Removes the head of this inbox.
|
int |
size()
Convenience for
inbox.queue().size() |
public boolean isEmpty()
Inboxtrue if this inbox contains no elements, false otherwise.public Object peek()
Inboxnull if it is empty.public Object poll()
Inboxnull
if it is empty.public void remove()
Inboxpublic void add(Object o)
inbox.queue().add(o)public void addAll(Collection<?> collection)
inbox.queue().addAll(collection)public void clear()
inbox.queue().clear()public int size()
inbox.queue().size()Copyright © 2018 Hazelcast, Inc.. All rights reserved.