railo.runtime.type.comparator
Class TextComparator

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

public final class TextComparator
extends Object
implements ExceptionComparator

comparator implementation to compare textes


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

TextComparator

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

Parameters:
isAsc - ascending or desending
ignoreCase - ignore case or not
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