Package org.bladerunnerjs.utility

Examples of org.bladerunnerjs.utility.StringLengthComparator


    assertEquals("a, b, c", set("a", "b", "c"));
    assertEquals("a, b, c", set("c", "b", "a"));
  }
 
  private String set(String... args) {
    Set<String> items = new TreeSet<>(new StringLengthComparator());
    items.addAll(Arrays.asList(args));
   
    return Joiner.on(", ").join(items);
  }
View Full Code Here


  public static String getTemplateName(BRJSNode node) {
    return node.getTypeName().toLowerCase();
  }
 
  private static Map<String, String> getNodeTransformations(BRJSNode node) throws ModelUpdateException {
    Map<String, String> transformations = new TreeMap<>(new StringLengthComparator());
   
    do {
      node.addTemplateTransformations(transformations);
      node = (BRJSNode) node.parentNode();
    } while(node != null);
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.utility.StringLengthComparator

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.