T
- type of the attribute to sort by.public class SortSpecification<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SortSpecification.SortComponent<T>
Sort specification component.
|
Constructor and Description |
---|
SortSpecification()
Creates a sort specification.
|
Modifier and Type | Method and Description |
---|---|
void |
addSortComponent(T attribute,
SortOrder sortOrder)
Appends a sort component to the collection of sort components for this
specification
|
boolean |
equals(Object obj) |
List<SortSpecification.SortComponent<T>> |
getSortComponents()
Gets the specification's sort entries.
|
int |
hashCode() |
String |
toString() |
public void addSortComponent(T attribute, SortOrder sortOrder)
attribute
- attribute to sort by.sortOrder
- sort direction.public List<SortSpecification.SortComponent<T>> getSortComponents()
Copyright © 2015. All Rights Reserved.