Class NonPersistentNonOrderedCoexpLink
java.lang.Object
ubic.gemma.persistence.service.association.coexpression.NonPersistentNonOrderedCoexpLink
- All Implemented Interfaces:
Comparable<NonPersistentNonOrderedCoexpLink>
public class NonPersistentNonOrderedCoexpLink
extends Object
implements Comparable<NonPersistentNonOrderedCoexpLink>
Wrapper object used to track and eliminate duplicates. Crucial: for the purposes of "equals" and "hashcode", ignores
the ID of the link, and the gene order. Sign is used. Sort order is by ID of the first gene only.
- Author:
- Paul
-
Constructor Summary
ConstructorsConstructorDescriptionNonPersistentNonOrderedCoexpLink
(Long g1, Long g2, boolean b) NonPersistentNonOrderedCoexpLink
(Gene g1, Gene g2, boolean b) -
Method Summary
-
Constructor Details
-
NonPersistentNonOrderedCoexpLink
-
NonPersistentNonOrderedCoexpLink
-
NonPersistentNonOrderedCoexpLink
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<NonPersistentNonOrderedCoexpLink>
-
getFirstGene
- Returns:
- The first gene for the underlying link; this is always the lower ID.
-
getLink
- Returns:
- The underlying link (may be null depending on how this was constructed)
-
getSecondGene
- Returns:
- The second gene for the underlying link; this is always the higher ID - not necesssarily the secondGene
-
hashCode
public int hashCode() -
equals
-
toString
-
isPositiveCorrelation
public boolean isPositiveCorrelation()
-