Package edu.uci.ics.jung.graph.util
Class Context<G,E>
java.lang.Object
edu.uci.ics.jung.graph.util.Context<G,E>
A class that is used to link together a graph element and a specific graph.
Provides appropriate implementations of
hashCode
and equals
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <G,
E> Context <G, E> getInstance
(G graph, E element) int
hashCode()
-
Field Details
-
instance
-
graph
The graph element which defines this context. -
element
The edge element which defines this context.
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getInstance
- Type Parameters:
G
- the graph typeE
- the element type- Parameters:
graph
- the graph for which the instance is createdelement
- the element for which the instance is created- Returns:
- an instance of this type for the specified graph and element
-
hashCode
public int hashCode() -
equals
-