|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.query.model.Constraint
org.jboss.dna.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)
|
StaticOperand |
getLowerBound()
Get the lower bound operand. |
DynamicOperand |
getOperand()
Get the dynamic operand specification. |
StaticOperand |
getUpperBound()
Get the upper bound operand. |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
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 null
public 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 null| Method Detail |
|---|
public final DynamicOperand getOperand()
public StaticOperand getLowerBound()
public StaticOperand getUpperBound()
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 ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public void accept(Visitor visitor)
visitor - the visitor; never nullVisitable.accept(org.jboss.dna.graph.query.model.Visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||