BaseQuerySort

abstract class BaseQuerySort<T : Any> : QuerySorter<T>

Base class for implementing QuerySorter. This class holds common code for QuerySortByField and QuerySortByReflection.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val comparator: <Error class: unknown class><in T>

Comparator class that will be generator by the sort specifications.

Link copied to clipboard

Sort specifications that compose this QuerySorter

Functions

Link copied to clipboard
abstract fun comparatorFromFieldSort(firstSort: SortAttribute.FieldSortAttribute<T>, sortDirection: SortDirection): <Error class: unknown class><T>
Link copied to clipboard
abstract fun comparatorFromNameAttribute(name: SortAttribute.FieldNameSortAttribute<T>, sortDirection: SortDirection): <Error class: unknown class><T>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toDto(): List<Map<String, Any>>

Converts the sorter to a DTO.

Link copied to clipboard
open override fun toString(): String