Top Fields Methods
com.vladsch.flexmark.util.sequence.mappers

public Interface CharMapper

Known Direct Implementers
com.vladsch.flexmark.util.sequence.mappers.NullEncoder.DecodeNull, com.vladsch.flexmark.util.sequence.mappers.NullEncoder.EncodeNull, com.vladsch.flexmark.util.sequence.mappers.SpaceMapper.FromNonBreakSpace, com.vladsch.flexmark.util.sequence.mappers.SpaceMapper.FromPredicate, com.vladsch.flexmark.util.sequence.mappers.SpaceMapper.ToNonBreakSpace, com.vladsch.flexmark.util.sequence.mappers.ChangeCase.ToLowerCase, com.vladsch.flexmark.util.sequence.mappers.ChangeCase.ToUpperCase
Imports
java.util.Objects

Field Summary

Modifier and TypeField and Description
public static final CharMapper

Method Summary

Modifier and TypeMethod and Description
public default CharMapper

Returns:

a composed operator that first applies this operator and then applies the after operator
andThen
(CharMapper
the operator to apply after this operator is applied
after
)

Returns a composed operator that first applies this operator to its input, and then applies the after operator to the result.

public default CharMapper

Returns:

a composed operator that first applies the before operator and then applies this operator
compose
(CharMapper
the operator to apply before this operator is applied
before
)

Returns a composed operator that first applies the before operator to its input, and then applies this operator to the result.

public static CharMapper

Returns:

a unary operator that always returns its input argument
identity
()

Returns a unary operator that always returns its input argument.

public char

Returns:

mapped character
map
(char
code point
codePoint
)

Map characters

Field Detail

IDENTITYback to summary
public static final CharMapper IDENTITY

Method Detail

andThenback to summary
public 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. If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.

Parameters
after:CharMapper

the operator to apply after this operator is applied

Returns:CharMapper

a composed operator that first applies this operator and then applies the after operator

Exceptions
NullPointerException:
if after is null
See Also
compose(CharMapper)
composeback to summary
public 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. If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.

Parameters
before:CharMapper

the operator to apply before this operator is applied

Returns:CharMapper

a composed operator that first applies the before operator and then applies this operator

Exceptions
NullPointerException:
if before is null
See Also
andThen(CharMapper)
identityback to summary
public static CharMapper identity()

Returns a unary operator that always returns its input argument.

Returns:CharMapper

a unary operator that always returns its input argument

mapback to summary
public char map(char codePoint)

Map characters

Parameters
codePoint:char

code point

Returns:char

mapped character