Package org.stjs.javascript.JSGlobal

Examples of org.stjs.javascript.JSGlobal.String


    SortFunction<Object> myComparefn = new SortFunction<Object>() {
      @Override
      public int $invoke(Object x, Object y) {
        // inverse function from the normal comparison, should sort in descending order
        String xS = String(x);
        String yS = String(y);
        return -xS.compareToIgnoreCase(yS);
      }
    };

    Array<Object> alphabetR = $array(null, 2, 1, "X", -1, "a", true, obj, NaN, Double.POSITIVE_INFINITY);
View Full Code Here

TOP

Related Classes of org.stjs.javascript.JSGlobal.String

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.