QuerySortByField
Implementation of QuerySorter for fields that implements ComparableFieldProvider
. This QuerySorter doesn't use reflection and it's more performant than QuerySortByReflection
.
Inherited properties
Functions
Link copied to clipboard
Link copied to clipboard
open override fun comparatorFromFieldSort(firstSort: SortAttribute.FieldSortAttribute<T>, sortDirection: SortDirection): Comparator<T>
Comparator from SortAttribute.FieldSortAttribute
Link copied to clipboard
open override fun comparatorFromNameAttribute(name: SortAttribute.FieldNameSortAttribute<T>, sortDirection: SortDirection): Comparator<T>
Comparator from SortAttribute.FieldNameSortAttribute
Link copied to clipboard
Inherited functions
Link copied to clipboard
fun <R : ComparableFieldProvider> QuerySortByField<R>.ascByName(fieldName: String): QuerySortByField<R>
Creates a QuerySortByField using the name of field in the direction ASC.
Link copied to clipboard
fun <R : ComparableFieldProvider> QuerySortByField<R>.descByName(fieldName: String): QuerySortByField<R>
Creates a QuerySortByField using the name of field in the direction DESC.