- 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 decoders.
- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueDecoderDefault identity configuration property value decoder. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ValueDecoderandThen(@NotNull ValueDecoder after) Returns a composed decoder that first applies this decoder to its input, and then applies theafterdecoder to the result.default @NotNull ValueDecodercompose(@NotNull ValueDecoder before) Returns a composed decoder that first applies thebeforedecoder to its input, and then applies this decoder to the result.Decodes the configuration property value.
-
Field Details
-
DEFAULT
Default identity configuration property value decoder.
-
-
Method Details
-
decode
Decodes the configuration property value.- Parameters:
value- The configuration property value.- Returns:
- The decoded configuration property value.
-
compose
Returns a composed decoder that first applies thebeforedecoder to its input, and then applies this decoder to the result. If evaluation of either decoder throws an exception, it is relayed to the caller of the composed decoder.- Parameters:
before- The decoder to apply before this decoder is applied.- Returns:
- A composed decoder that first applies the
beforedecoder and then applies this decoder. - Throws:
NullPointerException- If before is null;- See Also:
-
andThen
Returns a composed decoder that first applies this decoder to its input, and then applies theafterdecoder to the result. If evaluation of either decoder throws an exception, it is relayed to the caller of the composed decoder.- Parameters:
after- The decoder to apply after this decoder is applied.- Returns:
- A composed decoder that first applies this decoder and then
applies the
afterdecoder. - Throws:
NullPointerException- If after is null.- See Also:
-