Package org.drools.beliefs.graph.impl
Class ListGraphStore<T>
- java.lang.Object
-
- org.drools.beliefs.graph.impl.ListGraphStore<T>
-
- All Implemented Interfaces:
Iterable<GraphNode<T>>,GraphStore<T>
public class ListGraphStore<T> extends Object implements GraphStore<T>
-
-
Constructor Summary
Constructors Constructor Description ListGraphStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphNode<T>addNode()GraphNode<T>getNode(int id)Iterator<GraphNode<T>>iterator()GraphNode<T>removeNode(int id)intsize()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addNode
public GraphNode<T> addNode()
- Specified by:
addNodein interfaceGraphStore<T>
-
removeNode
public GraphNode<T> removeNode(int id)
- Specified by:
removeNodein interfaceGraphStore<T>
-
getNode
public GraphNode<T> getNode(int id)
- Specified by:
getNodein interfaceGraphStore<T>
-
size
public int size()
- Specified by:
sizein interfaceGraphStore<T>
-
-