Class AbstractMIEdge<T>
- java.lang.Object
-
- psidev.psi.mi.jami.analysis.graph.model.AbstractMIEdge<T>
-
- All Implemented Interfaces:
MIEdge<T>
- Direct Known Subclasses:
BindingPair
public abstract class AbstractMIEdge<T> extends Object implements MIEdge<T>
Abstract class for MIEdge interface. Node A and node B are sorted according to a provided comparator. Equals and hashCode are overridden so an edge is equals if nodeA and nodeB are the same and mutable. The MIComparator will be used to sort node A and B, to test if two objects are identical in the equals method and to generate hashCode for node A and B. (A-B is the same as B-A)- Since:
14/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractMIEdge(T nodeA, T nodeB, MIComparator<T> nodeComparator)
Constructor for AbstractMIEdge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
T
getNodeA()
Getter for the fieldnodeA
.T
getNodeB()
Getter for the fieldnodeB
.int
hashCode()
-
-
-
Constructor Detail
-
AbstractMIEdge
public AbstractMIEdge(T nodeA, T nodeB, MIComparator<T> nodeComparator)
Constructor for AbstractMIEdge.
- Parameters:
nodeA
- a T object.nodeB
- a T object.nodeComparator
- aMIComparator
object.
-
-