railo.runtime.type.comparator
Class NumberSortRegisterComparator

java.lang.Object
  extended by railo.runtime.type.comparator.NumberSortRegisterComparator
All Implemented Interfaces:
Comparator, ExceptionComparator

public final class NumberSortRegisterComparator
extends Object
implements ExceptionComparator

Implementation of a Comparator, compares to Softregister Objects


Constructor Summary
NumberSortRegisterComparator(boolean isAsc)
          constructor of the class
 
Method Summary
 int compare(Object oLeft, Object oRight)
           
 PageException getPageException()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NumberSortRegisterComparator

public NumberSortRegisterComparator(boolean isAsc)
constructor of the class

Parameters:
isAsc - is ascendinf or descending
Method Detail

getPageException

public PageException getPageException()
Specified by:
getPageException in interface ExceptionComparator
Returns:
Returns the expressionException.

compare

public int compare(Object oLeft,
                   Object oRight)
Specified by:
compare in interface Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2012 Railo