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() |
String |
toString() |
public boolean isEmpty()
Inbox
true
if this inbox contains no elements, false
otherwise.public Object peek()
Inbox
null
if it is empty.public Object poll()
Inbox
null
if it is empty.public void remove()
Inbox
public 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 © 2019 Hazelcast, Inc.. All rights reserved.