Interface ValueComposer<T,U>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ValueComposer<T,U>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(@NotNull ConfigurationHolder<?> holder, T type, U data)
Accept the value and the data, and then compose the value.default ValueComposer<T,U>
andThen(ValueComposer<? super T,? super U> after)
-
-
-
Method Detail
-
accept
void accept(@NotNull @NotNull ConfigurationHolder<?> holder, @NotNull T type, @NotNull U data) throws java.lang.Exception
Accept the value and the data, and then compose the value.- Parameters:
holder
- The configuration holdertype
- The value type, e.g.List
,Map
, etc.data
- The unit data- Throws:
java.lang.Exception
- If an error occurs
-
andThen
default ValueComposer<T,U> andThen(ValueComposer<? super T,? super U> after)
-
-