org.ujoframework.extensions
Class SortingProperty<UJO extends Ujo,VALUE>

java.lang.Object
  extended by org.ujoframework.extensions.PathProperty<UJO,VALUE>
      extended by org.ujoframework.extensions.SortingProperty<UJO,VALUE>
All Implemented Interfaces:
java.lang.CharSequence, UjoProperty<UJO,VALUE>

public final class SortingProperty<UJO extends Ujo,VALUE>
extends PathProperty<UJO,VALUE>

A property for a direction of sorting.

Author:
Pavel Ponec

Constructor Summary
SortingProperty(UjoProperty<UJO,VALUE> property, boolean ascending)
           
 
Method Summary
 boolean isAscending()
          A flag for a direction of sorting.
 
Methods inherited from class org.ujoframework.extensions.PathProperty
add, copy, create, descending, equals, exportProperties, getDefault, getIndex, getLastProperty, getName, getProperty, getPropertyCount, getSemifinalValue, getType, getValue, charAt, isDefault, isDirect, isTypeOf, length, newInstance, newInstance, newInstance, newInstance, of, setValue, subSequence, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortingProperty

public SortingProperty(UjoProperty<UJO,VALUE> property,
                       boolean ascending)
Method Detail

isAscending

public final boolean isAscending()
A flag for a direction of sorting. This method returns a value by a constructor parameter

Specified by:
isAscending in interface UjoProperty<UJO extends Ujo,VALUE>
Overrides:
isAscending in class PathProperty<UJO extends Ujo,VALUE>
See Also:
UjoComparator


Copyright © 2010. All Rights Reserved.