ca.odell.glazedlists.matchers.GlazedListsICU4J Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glazedlists_java15 Show documentation
Show all versions of glazedlists_java15 Show documentation
Event-driven lists for dynamically filtered and sorted tables
/* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.matchers;
import ca.odell.glazedlists.impl.filter.TextSearchStrategy;
import ca.odell.glazedlists.impl.filter.UnicodeCaseInsensitiveTextSearchStrategy;
/**
* Bind Glazed Lists to ICU4J.
*
* @author Jesse Wilson
*/
public class GlazedListsICU4J {
/** a text search strategy with full unicode locale-sensitive string searching */
public static final Object UNICODE_TEXT_SEARCH_STRATEGY = new UnicodeStrategyFactory();
// this would be an anonymous class if declawer supported them!
private static class UnicodeStrategyFactory implements TextSearchStrategy.Factory {
public TextSearchStrategy create(int mode, String filter) {
return new UnicodeCaseInsensitiveTextSearchStrategy(mode);
}
}
}