|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.search.Restriction
org.nuiton.wikitty.search.Between
public class Between
Between operator is used to build restriction containing "min < element
< max" where element could be a Integer, a Float or a Date.
For example, use: RestrictionHelper.between( myElement , "15.5" , "22.5" )
| Field Summary | |
|---|---|
protected Element |
element
|
protected String |
max
|
protected String |
min
|
| Fields inherited from class org.nuiton.wikitty.search.Restriction |
|---|
name |
| Constructor Summary | |
|---|---|
Between()
Default constructor |
|
Between(Element element,
String min,
String max)
Constructor with all parameters initialized |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Equality test based attributes values |
Element |
getElement()
Return element |
String |
getMax()
Return max |
String |
getMin()
Return min |
int |
hashCode()
|
void |
setElement(Element element)
Set a value to parameter element. |
void |
setMax(String max)
Set a value to parameter max. |
void |
setMin(String min)
Set a value to parameter min. |
| Methods inherited from class org.nuiton.wikitty.search.Restriction |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Element element
protected String min
protected String max
| Constructor Detail |
|---|
public Between()
public Between(Element element,
String min,
String max)
element - min - max - | Method Detail |
|---|
public Element getElement()
public void setElement(Element element)
element - public String getMin()
public void setMin(String min)
min - public String getMax()
public void setMax(String max)
max - public boolean equals(Object other)
equals in class Restrictionvalue - Value to comparepublic int hashCode()
hashCode in class Restriction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||