|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.model.Between
@Immutable public class Between
A constraint that evaluates to true when the value defined by the dynamic operand evaluates to be within the specified range.
Constructor Summary | |
---|---|
Between(DynamicOperand operand,
StaticOperand lowerBound,
StaticOperand upperBound)
Create a constraint that the values of the supplied dynamic operand are between the lower and upper bounds (inclusive). |
|
Between(DynamicOperand operand,
StaticOperand lowerBound,
StaticOperand upperBound,
boolean includeLowerBound,
boolean includeUpperBound)
Create a constraint that the values of the supplied dynamic operand are between the lower and upper bounds, specifying whether the boundary values are to be included in the range. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isLowerBoundIncluded()
Return whether the lower bound is to be included in the results. |
boolean |
isUpperBoundIncluded()
Return whether the upper bound is to be included in the results. |
StaticOperand |
lowerBound()
Get the lower bound operand. |
DynamicOperand |
operand()
Get the dynamic operand specification. |
String |
toString()
|
StaticOperand |
upperBound()
Get the upper bound operand. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Between(DynamicOperand operand, StaticOperand lowerBound, StaticOperand upperBound)
operand
- the dynamic operand describing the values that are to be constrainedlowerBound
- the lower bound of the rangeupperBound
- the upper bound of the range
IllegalArgumentException
- if any of the arguments are nullpublic Between(DynamicOperand operand, StaticOperand lowerBound, StaticOperand upperBound, boolean includeLowerBound, boolean includeUpperBound)
operand
- the dynamic operand describing the values that are to be constrainedlowerBound
- the lower bound of the rangeupperBound
- the upper bound of the rangeincludeLowerBound
- true if the lower boundary value is not be includedincludeUpperBound
- true if the upper boundary value is not be included
IllegalArgumentException
- if any of the arguments are nullMethod Detail |
---|
public DynamicOperand operand()
public StaticOperand lowerBound()
public StaticOperand upperBound()
public boolean isLowerBoundIncluded()
lower bound
is to be included, or false otherwisepublic boolean isUpperBoundIncluded()
upper bound
is to be included, or false otherwisepublic String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- the visitor; never nullVisitable.accept(org.modeshape.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |