|
Predictions 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objecthirondelle.predict.pub.search.SearchCriteria
public final class SearchCriteria
Model object for user input of search criteria.
In this case, the getXXX methods are package-private.
The user enters dates only, without times. The underlying data, the creation date-time of the
Prediction, carries both date and time. To account for this, the getFromDate()
and getToDate() methods return DateTime objects that are coerced to specific times
of day, using DateTime.getStartOfDay() and DateTime.getEndOfDay(), respectively.
| Constructor Summary | |
|---|---|
SearchCriteria(SafeText aSearchText,
SafeText aSearchStyle,
DateTime aFromDate,
DateTime aToDate)
Full constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object aThat)
|
(package private) DateTime |
getFromDate()
The date passed to the constructor, if any, but with time coerced to the start of the day. |
(package private) SearchStyle |
getSearchStyle()
|
(package private) SafeText |
getSearchText()
|
(package private) DateTime |
getToDate()
The date passed to the constructor, if any, but with time coerced to the end of the day. |
int |
hashCode()
|
String |
toString()
Intended for debugging only. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SearchCriteria(SafeText aSearchText,
SafeText aSearchStyle,
DateTime aFromDate,
DateTime aToDate)
throws ModelCtorException
The dates can occur in any combination. If both the From-Date and To-Date are present, however, then the From-Date can never come after the To-Date.
No checks are made for 'future dates'.
aSearchText - number of characters in range 2..255 (required)aSearchStyle - requiredaFromDate - minimum creation date, must never be after aToDate (optional)aToDate - maximum creation date (optional)
ModelCtorException| Method Detail |
|---|
SafeText getSearchText()
DateTime getFromDate()
DateTime getToDate()
SearchStyle getSearchStyle()
public String toString()
toString in class Objectpublic boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Predictions 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||