Code example for Collator

Methods: setStrength

0
    public static final String ORDER_ASC = "asc";
 
    static final Collator collator = Collator.getInstance();
 
    static { 
        collator.setStrength(Collator.PRIMARY); // case+accent independent
    } 
 
    final String schemaName;
 
    final Map<String, String> orderBy;
 
    /** 
     * Constructor using a schema and a map of field names to compare on. 
     * 
     * @param schemaName the schema name 
     * @param orderBy map using property names as keys, and "asc" or "desc" as 
     *            values. Should be a {@link LinkedHashMap} if order of criteria 
     *            matters. 
     */ 
Connect your IDE to all the code out there  Get Codota for Java