railo.runtime.type.comparator
Class NumberComparator

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

public final class NumberComparator
extends Object
implements ExceptionComparator

comparator implementation, compare to numbers


Constructor Summary
NumberComparator(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

NumberComparator

public NumberComparator(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 pageException.

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