|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.AbstractSequentialList java.util.LinkedList org.jrdf.graph.mem.CollectionImpl
A Collection all the statements of a particular group.
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
CollectionImpl()
{@inheritDoc} |
Method Summary | |
void |
add(int index,
Object element)
Add an $ ObjectNode to the collection at the given position. |
boolean |
add(Object o)
Add an $ ObjectNode to the collection. |
boolean |
addAll(Collection c)
Add a collection of $ ObjectNode s to this one. |
boolean |
addAll(int index,
Collection c)
Add a collection of $ ObjectNode s to this one starting at the given
index. |
void |
addFirst(Object o)
Add an $ ObjectNode to the start of the collection. |
void |
addLast(Object o)
|
boolean |
contains(Object o)
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 o)
|
int |
lastIndexOf(Object o)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
Methods inherited from class java.util.LinkedList |
clear, clone, get, getFirst, getLast, listIterator, remove, removeFirst, removeLast, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
iterator |
Methods inherited from class java.util.AbstractList |
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
isEmpty, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jrdf.graph.Collection |
iterator |
Methods inherited from interface java.util.List |
equals, hashCode, isEmpty, iterator, listIterator, subList |
Constructor Detail |
public CollectionImpl()
Method Detail |
public void add(int index, Object element) throws IllegalArgumentException
Collection
ObjectNode
to the collection at the given position.
add
in interface Collection
IllegalArgumentException
public boolean add(Object o) throws IllegalArgumentException
Collection
ObjectNode
to the collection.
add
in interface Collection
IllegalArgumentException
public boolean addAll(Collection c) throws IllegalArgumentException
Collection
ObjectNode
s to this one.
addAll
in interface Collection
IllegalArgumentException
public boolean addAll(int index, Collection c) throws IllegalArgumentException
Collection
ObjectNode
s to this one starting at the given
index.
addAll
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, Collection.public void addFirst(Object o)
Collection
ObjectNode
to the start of the collection.
addFirst
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.public void addLast(Object o)
addLast
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.public boolean contains(Object o)
Collection
contains
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.public int indexOf(Object o) throws IllegalArgumentException
indexOf
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.public int lastIndexOf(Object o) throws IllegalArgumentException
lastIndexOf
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.public boolean remove(Object o) throws IllegalArgumentException
remove
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type.public boolean containsAll(Collection c)
Collection
containsAll
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, Collection.public boolean removeAll(Collection c) throws IllegalArgumentException
removeAll
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, Collection.public boolean retainAll(Collection c) throws IllegalArgumentException
retainAll
in interface Collection
IllegalArgumentException
- if the given object is not the correct
type, Collection.public Object set(int index, Object element) throws IllegalArgumentException
set
in interface Collection
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 |