- java.lang.Object
-
- org.jgrapht.graph.concurrent.AsSynchronizedGraph.NoCache
-
- org.jgrapht.graph.concurrent.AsSynchronizedGraph.NoCopy
-
- All Implemented Interfaces:
java.io.Serializable
,AsSynchronizedGraph.CacheStrategy<V,E>
- Enclosing class:
- AsSynchronizedGraph<V,E>
private class AsSynchronizedGraph.NoCopy extends AsSynchronizedGraph.NoCache
Disable cache as perNoCache
, and also don't produce copies; instead, just directly return the results from the underlying graph. This requires the caller to explicitly synchronize iterations over these collections.
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
NoCopy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<E>
edgesOf(V vertex)
Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.java.util.Set<E>
incomingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.java.util.Set<E>
outgoingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.-
Methods inherited from class org.jgrapht.graph.concurrent.AsSynchronizedGraph.NoCache
addEdge, addEdge, isCacheEnabled, removeEdge, removeEdge, removeVertex
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
edgesOf
public java.util.Set<E> edgesOf(V vertex)
Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.- Specified by:
edgesOf
in interfaceAsSynchronizedGraph.CacheStrategy<V,E>
- Overrides:
edgesOf
in classAsSynchronizedGraph.NoCache
-
incomingEdgesOf
public java.util.Set<E> incomingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.- Specified by:
incomingEdgesOf
in interfaceAsSynchronizedGraph.CacheStrategy<V,E>
- Overrides:
incomingEdgesOf
in classAsSynchronizedGraph.NoCache
-
outgoingEdgesOf
public java.util.Set<E> outgoingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.- Specified by:
outgoingEdgesOf
in interfaceAsSynchronizedGraph.CacheStrategy<V,E>
- Overrides:
outgoingEdgesOf
in classAsSynchronizedGraph.NoCache
-
-