Package io.deephaven.web.client.api
Class Sort
java.lang.Object
io.deephaven.web.client.api.Sort
Describes a
Sort present on the table. No visible constructor, created through the use of
Column.sort(), will be tied to that particular column data. Sort instances are immutable, and use a
builder pattern to make modifications. All methods return a new Sort instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()Builds aSortinstance which takes the absolute value before applying order.asc()Builds aSortinstance to sort values in ascending order.desc()Builds aSortinstance to sort values in descending order.booleanThe column which is sorted.The direction of this sort, eitherASC,DESC, orREVERSE.inthashCode()booleanisAbs()Set totrueif the absolute value of the column should be used when sorting; defaults tofalse.static Sortreverse()toString()
-
Field Details
-
ASCENDING
- See Also:
-
DESCENDING
- See Also:
-
REVERSE
- See Also:
-
-
Constructor Details
-
Sort
-
-
Method Details
-
reverse
-
getColumn
The column which is sorted.- Returns:
Column
-
getDirection
The direction of this sort, eitherASC,DESC, orREVERSE.- Returns:
- String
-
isAbs
@JsProperty(name="isAbs") public boolean isAbs()Set totrueif the absolute value of the column should be used when sorting; defaults tofalse.- Returns:
- boolean
-
asc
Builds aSortinstance to sort values in ascending order.- Returns:
Sort
-
desc
Builds aSortinstance to sort values in descending order.- Returns:
Sort
-
abs
Builds aSortinstance which takes the absolute value before applying order.- Returns:
Sort
-
makeDescriptor
-
toString
-
equals
-
hashCode
public int hashCode()
-