|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
add(java.lang.Object object)
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. |
boolean |
isEmpty()
Returns true if this list contains no elements. |
int |
size()
Returns the number of elements in this list. |
Method Detail |
public int size()
public boolean isEmpty()
public boolean add(java.lang.Object object)
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.
java.lang.UnsupportedOperationException
- if the add method is not
supported by this list.
java.lang.ClassCastException
- if the class of the specified element
prevents it from being added to this list.
java.lang.NullPointerException
- if the specified element is null and this
list does not support null elements.
java.lang.IllegalArgumentException
- if some aspect of this element
prevents it from being added to this list.public boolean addAll(java.util.Collection coll)
java.lang.UnsupportedOperationException
- if the addAll method is
not supported by this list.
java.lang.ClassCastException
- if the class of an element in the specified
collection prevents it from being added to this list.
java.lang.NullPointerException
- if the specified collection contains one
or more null elements and this list does not support null
elements, or if the specified collection is null.
java.lang.IllegalArgumentException
- if some aspect of an element in the
specified collection prevents it from being added to this
list.add(Object)
public void clear()
public java.lang.Object get()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |