public interface CharMapper
| Modifier and Type | Field and Description |
|---|---|
static CharMapper |
IDENTITY |
| Modifier and Type | Method and Description |
|---|---|
default CharMapper |
andThen(CharMapper after)
Returns a composed operator that first applies this operator to
its input, and then applies the
after operator to the result. |
default CharMapper |
compose(CharMapper before)
Returns a composed operator that first applies the
before
operator to its input, and then applies this operator to the result. |
static CharMapper |
identity()
Returns a unary operator that always returns its input argument.
|
char |
map(char codePoint)
Map characters
|
static final CharMapper IDENTITY
char map(char codePoint)
codePoint - code pointdefault CharMapper compose(CharMapper before)
before
operator to its input, and then applies this operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.before - the operator to apply before this operator is appliedbefore
operator and then applies this operatorNullPointerException - if before is nullandThen(CharMapper)default CharMapper andThen(CharMapper after)
after operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.after - the operator to apply after this operator is appliedafter operatorNullPointerException - if after is nullcompose(CharMapper)static CharMapper identity()
Copyright © 2020. All rights reserved.