org.intermine.objectstore.query
Class OverlapConstraint
java.lang.Object
org.intermine.objectstore.query.Constraint
org.intermine.objectstore.query.OverlapConstraint
public class OverlapConstraint
- extends Constraint
Represents a constraint comparing two range values on an object.
| Fields inherited from class org.intermine.objectstore.query.Constraint |
op |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
left
protected OverlapRange left
right
protected OverlapRange right
validOps
protected java.util.List<ConstraintOp> validOps
OverlapConstraint
public OverlapConstraint(OverlapRange left,
ConstraintOp op,
OverlapRange right)
- Construct a constraint.
- Parameters:
left - the left rangeop - the comparison operationright - the right range
- Throws:
java.lang.IllegalArgumentException - if the comparison op is not valid
getLeft
public OverlapRange getLeft()
- Returns the left OverlapRange.
- Returns:
- an OverlapRange object
getRight
public OverlapRange getRight()
- Returns the right OverlapRange.
- Returns:
- an OverlapRange object
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
-
- Overrides:
hashCode in class java.lang.Object