public class BasicDateSortOrder extends BasicSortOrder implements DateSortOrder, Serializable
modifiableORDER_ASCENDING, ORDER_DESCENDING, ORDER_DESCRIPTIONS| Constructor and Description |
|---|
BasicDateSortOrder(StepField field)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this sortorder to the specified object.
|
int |
getPart()
Returns the part of the date-field wich is to be compared.
|
String |
getPartDescription()
Returns a description of the part
|
int |
hashCode() |
void |
setPart(int p) |
String |
toString()
Returns a string representation of this SortOrder.
|
getDirection, getDirectionDescription, getField, isCaseSensitive, setCaseSensitive, setDirection, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirection, getField, isCaseSensitive, setUnmodifiablepublic BasicDateSortOrder(StepField field)
SortOrder.ORDER_ASCENDING.field - The associated stepfield.IllegalArgumentException - when an invalid argument is supplied.public int getPart()
DateSortOrdergetPart in interface DateSortOrderpublic String getPartDescription()
public void setPart(int p)
public boolean equals(Object obj)
SortOrdertrue if and only if the argument is a non-null
SortOrder object associated with the same field, using the same
sort direction.equals in interface SortOrderequals in class BasicSortOrderobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface SortOrderhashCode in class BasicSortOrderpublic String toString()
SortOrdergetField().getAlias()
getDirection()
toString in interface SortOrdertoString in class BasicSortOrderMMBase 1.9-SNAPSHOT - ${javadoctimestamp}