com.phoenixst.plexus.util
public class UnmodifiableGraph extends Object implements ObservableGraph, Serializable
Graph
. This
Graph
will be serializable if the delegate
Graph
is serializable. Note that the Edge objects are not wrapped, and
therefore are modifiable.
Since: 1.0
Version: $Revision: 1.6 $
Constructor Summary | |
---|---|
UnmodifiableGraph(Graph delegate)
Creates an unmodifiable view of the specified
Graph . |
Method Summary | |
---|---|
Graph.Edge | addEdge(Object object, Object tail, Object head, boolean isDirected)
Throws an UnsupportedOperationException . |
void | addGraphListener(GraphListener listener) |
boolean | addNode(Object node)
Throws an UnsupportedOperationException . |
Collection | adjacentNodes(Object node, Predicate traverserPredicate) |
boolean | containsEdge(Edge edge) |
boolean | containsNode(Object node) |
int | degree(Object node) |
int | degree(Object node, Predicate traverserPredicate) |
Collection | edges(Predicate edgePredicate) |
Object | getAdjacentNode(Object node, Predicate traverserPredicate) |
Edge | getEdge(Predicate edgePredicate) |
Edge | getIncidentEdge(Object node, Predicate traverserPredicate) |
Object | getNode(Predicate nodePredicate) |
Collection | incidentEdges(Object node, Predicate traverserPredicate) |
Collection | nodes(Predicate nodePredicate) |
boolean | removeEdge(Graph.Edge edge)
Throws an UnsupportedOperationException . |
void | removeGraphListener(GraphListener listener) |
boolean | removeNode(Object node)
Throws an UnsupportedOperationException . |
String | toString() |
Traverser | traverser(Object node, Predicate traverserPredicate) |
Graph
. This Graph
will be
serializable if the specified Graph
is
serializable.
Parameters: delegate the Graph
for which an unmodifiable
view is to be created.
UnsupportedOperationException
.UnsupportedOperationException
.UnsupportedOperationException
.UnsupportedOperationException
.