T
- the sort order typeV
- the sorting typepublic abstract class SortOrderBuilder<T extends SortOrder<V>,V> extends Object implements Serializable
build()
will create the list of sort orders.thenAsc(Object)
,
thenDesc(Object)
,
build()
,
Serialized FormConstructor and Description |
---|
SortOrderBuilder() |
Modifier and Type | Method and Description |
---|---|
List<T> |
build()
Returns an unmodifiable copy of the list of current sort orders in this
sort builder.
|
protected abstract T |
createSortOrder(V by,
SortDirection direction)
Creates a sort order object with the given parameters.
|
SortOrderBuilder<T,V> |
thenAsc(V by)
Appends sorting with ascending sort direction.
|
SortOrderBuilder<T,V> |
thenDesc(V by)
Appends sorting with descending sort direction.
|
public SortOrderBuilder<T,V> thenAsc(V by)
by
- the object to sort bypublic SortOrderBuilder<T,V> thenDesc(V by)
by
- the object to sort bypublic final List<T> build()
protected abstract T createSortOrder(V by, SortDirection direction)
by
- the object to sort bydirection
- the sort directionCopyright © 2025. All rights reserved.