railo.runtime.type.comparator
Class SortRegisterComparator

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

public final class SortRegisterComparator
extends Object
implements ExceptionComparator

Implementation of a Comparator, compares to Softregister Objects


Constructor Summary
SortRegisterComparator(boolean isAsc, boolean ignoreCase)
          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

SortRegisterComparator

public SortRegisterComparator(boolean isAsc,
                              boolean ignoreCase)
constructor of the class

Parameters:
isAsc - is ascending or descending
ignoreCase - do ignore case
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


Copyright © 2012 Railo