org.intermine.objectstore.query
Class OverlapConstraint

java.lang.Object
  extended by org.intermine.objectstore.query.Constraint
      extended by org.intermine.objectstore.query.OverlapConstraint

public class OverlapConstraint
extends Constraint

Represents a constraint comparing two range values on an object.


Field Summary
protected  OverlapRange left
           
protected  OverlapRange right
           
protected  java.util.List<ConstraintOp> validOps
           
 
Fields inherited from class org.intermine.objectstore.query.Constraint
op
 
Constructor Summary
OverlapConstraint(OverlapRange left, ConstraintOp op, OverlapRange right)
          Construct a constraint.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 OverlapRange getLeft()
          Returns the left OverlapRange.
 OverlapRange getRight()
          Returns the right OverlapRange.
 int hashCode()
          
 
Methods inherited from class org.intermine.objectstore.query.Constraint
getOp, negate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

protected OverlapRange left

right

protected OverlapRange right

validOps

protected java.util.List<ConstraintOp> validOps
Constructor Detail

OverlapConstraint

public OverlapConstraint(OverlapRange left,
                         ConstraintOp op,
                         OverlapRange right)
Construct a constraint.

Parameters:
left - the left range
op - the comparison operation
right - the right range
Throws:
java.lang.IllegalArgumentException - if the comparison op is not valid
Method Detail

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