|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.mem.AbstractUnorderedContainer<ObjectNode>
public abstract class AbstractUnorderedContainer<ObjectNode>
The base class for the implementation of Bag and Alternative.
| Field Summary | |
|---|---|
protected Map<Long,ObjectNode> |
elements
The hashmap containing the elements. |
protected long |
key
Counter used to generate keys to add to the hashmap. |
| Constructor Summary | |
|---|---|
AbstractUnorderedContainer()
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(ObjectNode o)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
abstract boolean |
equals(Object o)
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<ObjectNode> |
iterator()
|
|
boolean |
remove(Object o)
|
|
int |
size()
|
|
ObjectNode[] |
toArray()
|
|
|
toArray(ObjectNode[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jrdf.graph.Container |
|---|
addAll, containsAll, removeAll, retainAll |
| Field Detail |
|---|
protected Map<Long,ObjectNode> elements
protected long key
| Constructor Detail |
|---|
public AbstractUnorderedContainer()
| Method Detail |
|---|
public int size()
size in interface Collection<ObjectNode>public boolean isEmpty()
isEmpty in interface Collection<ObjectNode>public boolean contains(Object o)
Container
contains in interface Collection<ObjectNode>contains in interface Container<ObjectNode>public Iterator<ObjectNode> iterator()
Container
iterator in interface Iterable<ObjectNode>iterator in interface Collection<ObjectNode>iterator in interface Container<ObjectNode>public ObjectNode[] toArray()
toArray in interface Collection<ObjectNode>public <ObjectNode> ObjectNode[] toArray(ObjectNode[] a)
Container
toArray in interface Collection<ObjectNode>toArray in interface Container<ObjectNode>public boolean add(ObjectNode o)
Container
add in interface Collection<ObjectNode>add in interface Container<ObjectNode>o - Add an ObjectNode.
public boolean remove(Object o)
Container
remove in interface Collection<ObjectNode>remove in interface Container<ObjectNode>o - public void clear()
clear in interface Collection<ObjectNode>public int hashCode()
hashCode in interface Collection<ObjectNode>hashCode in class Objectpublic abstract boolean equals(Object o)
equals in interface Collection<ObjectNode>equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||