jcommon.graph.impl
Class Edge<TVertex extends IVertex>

java.lang.Object
  extended by jcommon.graph.impl.Edge<TVertex>
All Implemented Interfaces:
IEdge<TVertex>

public class Edge<TVertex extends IVertex>
extends Object
implements IEdge<TVertex>

See Also:
IEdge

Field Summary
 TVertex from
           
 TVertex to
           
 
Constructor Summary
Edge(TVertex from, TVertex to)
           
 
Method Summary
 boolean equals(Object obj)
           
 TVertex getFrom()
          Retrieves a reference of IVertex of type TVertex that will begin the edge.
 TVertex getTo()
          Retrieves a reference of IVertex of type TVertex that is being pointed to.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public final TVertex extends IVertex from

to

public final TVertex extends IVertex to
Constructor Detail

Edge

public Edge(TVertex from,
            TVertex to)
Method Detail

getFrom

public TVertex getFrom()
Description copied from interface: IEdge
Retrieves a reference of IVertex of type TVertex that will begin the edge.

Specified by:
getFrom in interface IEdge<TVertex extends IVertex>
Returns:
An instance of IVertex of type TVertex that begins the edge.

getTo

public TVertex getTo()
Description copied from interface: IEdge
Retrieves a reference of IVertex of type TVertex that is being pointed to.

Specified by:
getTo in interface IEdge<TVertex extends IVertex>
Returns:
An instance of IVertex of type TVertex that is being pointed to.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2012-2013. All Rights Reserved.