Object QuerySortByReflection.Companion
-
- All Implemented Interfaces:
public class QuerySortByReflection.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static QuerySortByReflection.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any> QuerySortByReflection<T>ascByName(QuerySortByReflection<T> $self, String fieldName)Adds a field to QuerySortByReflection using the name of field in the direction ASC. final <T extends Any> QuerySortByReflection<T>descByName(QuerySortByReflection<T> $self, String fieldName)Adds a field to QuerySortByReflection using the name of field in the direction DESC. final <T extends Any> QuerySortByReflection<T>asc(String fieldName)Creates a QuerySortByReflection using the name of field in the direction ASC. final <T extends Any> QuerySortByReflection<T>asc(KProperty1<T, Comparable<?>> field)Creates a QuerySortByReflection using the property of field in the direction ASC. final <R extends Any> QuerySortByReflection<R>desc(String fieldName)Creates a QuerySortByReflection using the name of field in the direction DESC. final <T extends Any> QuerySortByReflection<T>desc(KProperty1<T, Comparable<?>> field)Creates a QuerySortByReflection using the property of field in the direction DESC. -
-
Method Detail
-
ascByName
final <T extends Any> QuerySortByReflection<T> ascByName(QuerySortByReflection<T> $self, String fieldName)
Adds a field to QuerySortByReflection using the name of field in the direction ASC.
- Parameters:
fieldName- Field name.
-
descByName
final <T extends Any> QuerySortByReflection<T> descByName(QuerySortByReflection<T> $self, String fieldName)
Adds a field to QuerySortByReflection using the name of field in the direction DESC.
- Parameters:
fieldName- Field name.
-
asc
final <T extends Any> QuerySortByReflection<T> asc(String fieldName)
Creates a QuerySortByReflection using the name of field in the direction ASC.
- Parameters:
fieldName- Field name.
-
asc
final <T extends Any> QuerySortByReflection<T> asc(KProperty1<T, Comparable<?>> field)
Creates a QuerySortByReflection using the property of field in the direction ASC.
- Parameters:
field- KProperty1 from the class.
-
desc
final <R extends Any> QuerySortByReflection<R> desc(String fieldName)
Creates a QuerySortByReflection using the name of field in the direction DESC.
- Parameters:
fieldName- Field name.
-
desc
final <T extends Any> QuerySortByReflection<T> desc(KProperty1<T, Comparable<?>> field)
Creates a QuerySortByReflection using the property of field in the direction DESC.
- Parameters:
field- KProperty1 from the class.
-
-
-
-