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.ObjectA single item in aSortDirective. The item defines the ordering for afieldwithin 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 booleanequals(java.lang.Object obj)DFFieldgetField()Gets thefield.inthashCode()booleanisAscending()Gets the value of asc/desc flag.java.lang.StringtoString()
-
-
-
Method Detail
-
isAscending
public boolean isAscending()
Gets the value of asc/desc flag.- Returns:
trueif this item imposes the ascending order on its field.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-