List of usage examples for java.lang CharSequence codePoints
public default IntStream codePoints()
From source file:pt.ua.ri.tokenizer.WordTokenizer.java
@Override public CharSequence cleanWord(final CharSequence word) { checkNotNull(word);//from w w w . j a va 2s . c om return word.codePoints().filter(Character::isLetter).map(Character::toLowerCase).collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append); }