- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface of configuration property values encoders.
- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueEncoderDefault identity configuration property value encoder. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ValueEncoderandThen(@NotNull ValueEncoder after) Returns a composed encoder that first applies this encoder to its input, and then applies theafterencoder to the result.default @NotNull ValueEncodercompose(@NotNull ValueEncoder before) Returns a composed encoder that first applies thebeforeencoder to its input, and then applies this encoder to the result.Encodes the configuration property value.
-
Field Details
-
DEFAULT
Default identity configuration property value encoder.
-
-
Method Details
-
encode
Encodes the configuration property value.- Parameters:
value- The configuration property value.- Returns:
- The encoded configuration property value.
-
compose
Returns a composed encoder that first applies thebeforeencoder to its input, and then applies this encoder to the result. If evaluation of either encoder throws an exception, it is relayed to the caller of the composed encoder.- Parameters:
before- The encoder to apply before this encoder is applied.- Returns:
- A composed encoder that first applies the
beforeencoder and then applies this encoder. - Throws:
NullPointerException- If before is null;- See Also:
-
andThen
Returns a composed encoder that first applies this encoder to its input, and then applies theafterencoder to the result. If evaluation of either encoder throws an exception, it is relayed to the caller of the composed encoder.- Parameters:
after- The encoder to apply after this encoder is applied.- Returns:
- A composed encoder that first applies this encoder and then
applies the
afterencoder. - Throws:
NullPointerException- If after is null.- See Also:
-