K - Key type.@Experimental public class SortProperty<K> extends Object
SortBy,
SortDirection| Constructor and Description |
|---|
SortProperty(K property,
SortDirection direction)
Creates a new sort property.
|
| Modifier and Type | Method and Description |
|---|---|
SortDirection |
getDirection()
Get the sort direction.
|
K |
getProperty()
Get the property to sort by.
|
static <K> SortProperty<K> |
of(K property,
SortDirection direction)
Static factory method to create a SortProperty instance.
|
public SortProperty(K property, SortDirection direction)
property - the property to sort bydirection - the sort directionpublic static <K> SortProperty<K> of(K property, SortDirection direction)
K - Key typeproperty - the property to sort bydirection - the sort directionpublic K getProperty()
public SortDirection getDirection()
Copyright © 2026 lettuce.io. All rights reserved.