Example usage for java.lang String codePoints

List of usage examples for java.lang String codePoints

Introduction

In this page you can find the example usage for java.lang String codePoints.

Prototype

@Override
public IntStream codePoints() 

Source Link

Document

Returns a stream of code point values from this sequence.

Usage

From source file:org.zeroturnaround.isjrebel.IsJRebel.java

private static String dropPunctuation(String input) {
    return input.codePoints()
            .filter(c -> Character.isLetter(c) || Character.isDigit(c) || Character.isWhitespace(c))
            .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();
}