Package com.ibm.wala.util.graph.impl
Class SlowNumberedNodeManager<T>
- java.lang.Object
-
- com.ibm.wala.util.graph.impl.SlowNumberedNodeManager<T>
-
- All Implemented Interfaces:
NodeManager<T>,NumberedNodeManager<T>,Serializable,Iterable<T>
public class SlowNumberedNodeManager<T> extends Object implements NumberedNodeManager<T>, Serializable
An object which manages node numbers via a mapping.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlowNumberedNodeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(T n)add a node to this graphbooleancontainsNode(@Nullable T N)intgetMaxNumber()TgetNode(int number)intgetNumber(@Nullable T obj)intgetNumberOfNodes()Iterator<T>iterateNodes(IntSet s)Iterator<T>iterator()voidremoveNode(T n)remove a node from this graphStream<T>stream()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getNumber
public int getNumber(@Nullable T obj)
- Specified by:
getNumberin interfaceNumberedNodeManager<T>
-
getNode
public T getNode(int number)
- Specified by:
getNodein interfaceNumberedNodeManager<T>
-
getMaxNumber
public int getMaxNumber()
- Specified by:
getMaxNumberin interfaceNumberedNodeManager<T>
-
stream
public Stream<T> stream()
- Specified by:
streamin interfaceNodeManager<T>- Returns:
- a
Streamof the nodes in this graph
-
getNumberOfNodes
public int getNumberOfNodes()
- Specified by:
getNumberOfNodesin interfaceNodeManager<T>- Returns:
- the number of nodes in this graph
-
addNode
public void addNode(T n)
Description copied from interface:NodeManageradd a node to this graph- Specified by:
addNodein interfaceNodeManager<T>
-
removeNode
public void removeNode(T n)
Description copied from interface:NodeManagerremove a node from this graph- Specified by:
removeNodein interfaceNodeManager<T>- See Also:
NodeManager.removeNode(Object)
-
containsNode
public boolean containsNode(@Nullable T N)
- Specified by:
containsNodein interfaceNodeManager<T>- Returns:
- true iff the graph contains the specified node
- See Also:
NodeManager.containsNode(Object)
-
iterateNodes
public Iterator<T> iterateNodes(IntSet s)
- Specified by:
iterateNodesin interfaceNumberedNodeManager<T>- Returns:
- iterator of nodes with the numbers in set s
-
-