com.vaadin.data.sort
Class SortOrder

java.lang.Object
  extended by com.vaadin.data.sort.SortOrder
All Implemented Interfaces:
java.io.Serializable

public class SortOrder
extends java.lang.Object
implements java.io.Serializable

Sort order descriptor. Links together a SortDirection value and a Vaadin container property ID.

Since:
7.4
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
SortOrder(java.lang.Object propertyId, com.vaadin.shared.data.sort.SortDirection direction)
          Create a SortOrder object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 com.vaadin.shared.data.sort.SortDirection getDirection()
          Returns the SortDirection value.
 java.lang.Object getPropertyId()
          Returns the property ID.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortOrder

public SortOrder(java.lang.Object propertyId,
                 com.vaadin.shared.data.sort.SortDirection direction)
Create a SortOrder object. Both arguments must be non-null.

Parameters:
propertyId - id of the data source property to sort by
direction - value indicating whether the property id should be sorted in ascending or descending order
Method Detail

getPropertyId

public java.lang.Object getPropertyId()
Returns the property ID.

Returns:
a property ID

getDirection

public com.vaadin.shared.data.sort.SortDirection getDirection()
Returns the SortDirection value.

Returns:
a sort direction value

toString

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

hashCode

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

equals

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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.