Code example for Collator

Methods: setStrength

0
    private static final Log log = LogFactory.getLog(DefaultDocumentTreeSorter.class);
 
    static final Collator collator = Collator.getInstance();
 
    static { 
        collator.setStrength(Collator.PRIMARY); // case+accent independent
    } 
 
    protected String sortPropertyPath;
 
    @Override 
    public String getSortPropertyPath() {
        return sortPropertyPath;
    } 
 
    @Override 
    public void setSortPropertyPath(String sortPropertyPath) {
        this.sortPropertyPath = sortPropertyPath;
    } 
 
Experience pair programming with AI  Get Codota for Java