public class SortCriterion extends Object
| Constructor and Description |
|---|
SortCriterion(String property)
Creates an ascending sort criterion.
|
SortCriterion(String property,
boolean ascending)
Constructor that receives a property name and a sort indicator.
|
public SortCriterion(String property)
SortCriterion(property, true).property - public SortCriterion(String property, boolean ascending)
property - a String containing the property to be used to sort the returned
objects. It can be a property path. It cannot be null.ascending - a boolean telling if the sorting will be ascending or
descending.public boolean isAscending()
boolean.public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2008-2013 Ars Machina Tecnologia da Informação Ltda.. All Rights Reserved.