edu.uci.ics.jung.graph.util
Class Context<G,E>
- java.lang.Object
-
- edu.uci.ics.jung.graph.util.Context<G,E>
-
public class Context<G,E> extends java.lang.ObjectA class that is used to link together a graph element and a specific graph. Provides appropriate implementations ofhashCodeandequals.
-
-
Field Summary
Fields Modifier and Type Field and Description EelementThe edge element which defines this context.GgraphThe graph element which defines this context.
-
Constructor Summary
Constructors Constructor and Description Context()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)static <G,E> Context<G,E>getInstance(G graph, E element)inthashCode()
-
-
-
Field Detail
-
graph
public G graph
The graph element which defines this context.
-
element
public E element
The edge element which defines this context.
-
-
Method Detail
-
getInstance
public static <G,E> Context<G,E> getInstance(G graph, E element)
- 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG