|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Collection holds all the statements of a particular group. A linked list is created by using pointer statements (REST) to the next item in the collection. The group is closed, where the last statement in the group points to a NIL entry. See 4.1 RDF Collections.
| Method Summary | |
void |
add(int index,
Object element)
Add an $ ObjectNode to the collection at the given position. |
boolean |
add(Object element)
Add an $ ObjectNode to the collection. |
boolean |
addAll(Collection c)
Add a collection of $ ObjectNodes to this one. |
boolean |
addAll(int index,
Collection c)
Add a collection of $ ObjectNodes to this one starting at the given
index. |
void |
addFirst(Object element)
Add an $ ObjectNode to the start of the collection. |
void |
addLast(Object element)
|
boolean |
contains(Object element)
Search the collection and return if the object was found or not. |
boolean |
containsAll(Collection c)
Search the collection and return if all of the given objects were found. |
int |
indexOf(Object element)
|
Iterator |
iterator()
|
int |
lastIndexOf(Object element)
|
boolean |
remove(Object element)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
| Method Detail |
public boolean add(Object element)
throws IllegalArgumentException
ObjectNode to the collection.
element - object to add.
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
public void add(int index,
Object element)
throws IllegalArgumentException
ObjectNode to the collection at the given position.
index - the index into the collection to add.element - the object to add.
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
public boolean addAll(Collection c)
throws IllegalArgumentException
ObjectNodes to this one.
c - the collection to add.
IllegalArgumentException - if the given object is not the correct
type, Collection.
public boolean addAll(int index,
Collection c)
throws IllegalArgumentException
ObjectNodes to this one starting at the given
index.
index - the index into the collection to start adding.c - the collection to add.
IllegalArgumentException - if the given object is not the correct
type, Collection.public void addFirst(Object element)
ObjectNode to the start of the collection.
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.public void addLast(Object element)
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.public boolean contains(Object element)
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.public boolean containsAll(Collection c)
c - the collection containing the elements to search.
IllegalArgumentException - if the given object is not the correct
type, Collection.
public int indexOf(Object element)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.public Iterator iterator()
public int lastIndexOf(Object element)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
public boolean remove(Object element)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
public boolean removeAll(Collection c)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, Collection.
public boolean retainAll(Collection c)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, Collection.
public Object set(int index,
Object element)
throws IllegalArgumentException
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||