|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.BlockingQueue
Diese Queue blockiert, wenn Objekte abgefragt werden sollen, aber keine mehr da sind, bis neue Objekte hinzugefügt wurden
Constructor Summary | |
BlockingQueue()
|
|
BlockingQueue(java.util.Collection coll)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
BlockingQueue(int initialCapacity)
|
Method Summary | |
boolean |
add(java.lang.Object o)
Appends the specified element to the end of this list (optional operation). |
boolean |
addAll(java.util.Collection coll)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
void |
clear()
Löscht alle Elemente dieser Queue. |
java.lang.Object |
get()
Gibt das nächste Element der Queue zurück. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if this list contains no elements. |
int |
size()
Returns the number of elements in this list. |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlockingQueue(int initialCapacity)
public BlockingQueue(java.util.Collection coll)
java.lang.NullPointerException
- if the specified collection is null.public BlockingQueue()
Method Detail |
public int size()
Queue
size
in interface Queue
Queue.size()
public boolean isEmpty()
Queue
isEmpty
in interface Queue
Queue.isEmpty()
public boolean add(java.lang.Object o)
Queue
Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
add
in interface Queue
Queue.add(java.lang.Object)
public java.lang.Object get()
Queue
get
in interface Queue
Queue.get()
public boolean addAll(java.util.Collection coll)
Queue
addAll
in interface Queue
Queue.addAll(java.util.Collection)
public void clear()
Queue
clear
in interface Queue
Queue.clear()
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |