Package railo.runtime.type.comparator

Examples of railo.runtime.type.comparator.ExceptionComparator


            value=VariableInterpreter.getVariable(pc,Caster.toCollection(value),pathToSubElement);
        }       
        arr[i]=new SortRegister(i,value);
    }
   
    ExceptionComparator comp=null;
    // text
    if(sortType.equalsIgnoreCase("text")) comp=new SortRegisterComparator(isAsc,false);
   
    // text no case
    else if(sortType.equalsIgnoreCase("textnocase")) comp=new SortRegisterComparator(isAsc,true);     
   
    // numeric
    else if(sortType.equalsIgnoreCase("numeric")) comp=new NumberSortRegisterComparator(isAsc);
     
    else {
      throw new ExpressionException("invalid sort type ["+sortType+"], sort types are [text, textNoCase, numeric]");
    }
   
    Arrays.sort(arr,0,arr.length,comp);
    ee=comp.getPageException();
   
    if(ee!=null) {
      throw ee;
    }
   
View Full Code Here

TOP

Related Classes of railo.runtime.type.comparator.ExceptionComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.