Package com.github.moaxcp.graphs
Class DirectedEdgeKey<ID>
- java.lang.Object
-
- com.github.moaxcp.graphs.EdgeKey<ID>
-
- com.github.moaxcp.graphs.DirectedEdgeKey<ID>
-
- Type Parameters:
ID
- type of identifier
public final class DirectedEdgeKey<ID> extends EdgeKey<ID>
Used by directed implementations ofAbstractGraph
. AbstractGraph uses instances of this class as identifiers for Edges in the graph.
-
-
Constructor Summary
Constructors Constructor Description DirectedEdgeKey(ID from, ID to)
Creates a DirectedEdgeKey with given from and to params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Two DirectedEdgeKeys are equal when both from and to members match exactly.int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Two DirectedEdgeKeys are equal when both from and to members match exactly.
-
-