QuerySortByReflection

Sort specification for api queries. You can specify QuerySortByReflection by referencing kotlin class property or passing field name as string instance. QuerySortByReflection.asc(Channel::memberCount) and QuerySortByReflection.asc("member_count") mean the same.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Inherited properties

Link copied to clipboard
open override val comparator: Comparator<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
open fun asc(fieldName: String): QuerySortByReflection<T>
open fun asc(fieldName: String, javaClass: Class<T>): QuerySortByReflection<T>
open fun asc(fieldName: String, kClass: KClass<T>): QuerySortByReflection<T>

Creates a QuerySortByReflection with ASC as SortDirection

Link copied to clipboard
Link copied to clipboard
open fun desc(fieldName: String): QuerySortByReflection<T>
open fun desc(fieldName: String, javaClass: Class<T>): QuerySortByReflection<T>
open fun desc(fieldName: String, kClass: KClass<T>): QuerySortByReflection<T>

Creates a QuerySortByReflection with DESC as SortDirection

Inherited functions

Link copied to clipboard

Adds a field to QuerySortByReflection using the name of field in the direction ASC.

Link copied to clipboard

Adds a field to QuerySortByReflection using the name of field in the direction DESC.

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>>
Link copied to clipboard
open override fun toString(): String