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 Object
A class that is used to link together a graph element and a specific graph.
Provides appropriate implementations of hashCode
and equals
.
Field Summary |
E |
element
The edge element which defines this context. |
G |
graph
The graph element which defines this context. |
Method Summary |
boolean |
equals(Object o)
|
static
|
getInstance(G graph,
E element)
Returns an instance of this type for the specified graph and element. |
int |
hashCode()
|
graph
public G graph
- The graph element which defines this context.
element
public E element
- The edge element which defines this context.
Context
public Context()
getInstance
public static <G,E> Context<G,E> getInstance(G graph,
E element)
- Returns an instance of this type for the specified graph and element.
- Type Parameters:
G
- the graph typeE
- the element type
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
Copyright © 2009. All Rights Reserved.