org.apache.myfaces.component.html.ext
Class SortCriterion
java.lang.Object
org.apache.myfaces.component.html.ext.SortCriterion
- All Implemented Interfaces:
- java.io.Serializable
- public final class SortCriterion
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
SortCriterion(java.lang.String property,
boolean isAscending)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getProperty()
Gets the property that is identified by this class. |
int |
hashCode()
|
boolean |
isAscending()
Gets the direction in which the property of this class is sorted. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SortCriterion
public SortCriterion(java.lang.String property,
boolean isAscending)
isAscending
public boolean isAscending()
- Gets the direction in which the property of this class is sorted.
- Returns:
- true if the property identified by this class is sorted in
ascending order.
getProperty
public java.lang.String getProperty()
- Gets the property that is identified by this class. This is the property
that must be sorted by. If a collection of beans is being sorted, bean rules
will be used to find a suitable getter method that matches this property.
The value returned by the getter method will be sorted on.
If a collection of Maps is being sorted, this property will be used
as the key into each Map to get at the value being sorted.
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()
Copyright © 2007 Apache Software Foundation. All Rights Reserved.