V
- type of vertexpublic final class Edge<V> extends Object
The class is immutable, provided that given vertices are immutable.
Constructor and Description |
---|
Edge(V source,
V target)
Creates new instance of
Edge between given vertices. |
public Edge(V source, V target)
Edge
between given vertices.source
- source vertextarget
- target vertexNullPointerException
- if any vertex is nullpublic V getSource()
public V getTarget()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.