Package com.im.df.api.support
Class SortDirective.Item
- java.lang.Object
-
- com.im.df.api.support.SortDirective.Item
-
- Enclosing class:
- SortDirective
public static final class SortDirective.Item extends java.lang.Object
A single item in aSortDirective
. The item defines the ordering for afield
within theSortDirective
. The ordering can be either ascending or descending, which is determined by theisAscending()
method.Instances of this class are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
DFField
getField()
Gets thefield
.int
hashCode()
boolean
isAscending()
Gets the value of asc/desc flag.java.lang.String
toString()
-
-
-
Method Detail
-
isAscending
public boolean isAscending()
Gets the value of asc/desc flag.- Returns:
true
if this item imposes the ascending order on its field.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-