org.apache.wicket.extensions.markup.html.repeater.util
Class SortParam

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortParam
All Implemented Interfaces:
java.io.Serializable, IClusterable

public class SortParam
extends java.lang.Object
implements IClusterable

Represents sorting information of a property

Author:
Igor Vaynberg ( ivaynberg )
See Also:
Serialized Form

Constructor Summary
SortParam(java.lang.String property, boolean ascending)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getProperty()
           
 int hashCode()
           
 boolean isAscending()
          check if sort order is ascending
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortParam

public SortParam(java.lang.String property,
                 boolean ascending)
Parameters:
property - sort property
ascending - true if sort order is ascending, false if sort order is descending
Method Detail

getProperty

public java.lang.String getProperty()
Returns:
sort property

isAscending

public boolean isAscending()
check if sort order is ascending

Returns:
true if sort order is ascending, false if sort order is descending

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.