-
public interface SortField<T extends Object>A protocol that defines a sortable field for a specific model type.
This interface provides the foundation for creating sortable fields that can be used both for local sorting and remote API requests. It includes a comparator for local sorting operations and a remote string identifier for API communication.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSortField.Companion
-
Method Summary
Modifier and Type Method Description abstract AnySortComparator<T>getComparator()A comparator that can be used for local sorting operations. abstract StringgetRemote()The string identifier used when sending sort parameters to the remote API. -
-
Method Detail
-
getComparator
abstract AnySortComparator<T> getComparator()
A comparator that can be used for local sorting operations.
-
-
-
-