edu.uci.ics.jung.graph.util
Class Context<G,E>

java.lang.Object
  extended by 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
           
 G graph
           
 
Constructor Summary
Context()
           
 
Method Summary
 boolean equals(Object o)
           
static
<G,E> Context<G,E>
getInstance(G graph, E element)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

public G graph

element

public E element
Constructor Detail

Context

public Context()
Method Detail

getInstance

public static <G,E> Context<G,E> getInstance(G graph,
                                             E element)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2008 null. All Rights Reserved.