Interface ValueHandler<T,R>
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ValueHandler<T, V> andThen(@NotNull ValueHandler<R, V> after) default <V> ValueHandler<V, R> compose(@NotNull DataFunction<? super V, ? extends T> before) default <V> ValueHandler<V, R> compose(@NotNull ValueHandler<? super V, ? extends T> before) static <O,T> @NotNull ValueHandler <O, T> deserialize(ValueType<T> to) handle(@NotNull ConfigurationHolder<?> holder, T data) static <T> @NotNull ValueHandler<T, T> identity()static <T,V> @NotNull ValueHandler <T, V> required()static <T,V> @NotNull ValueHandler <T, V> static <T> @NotNull ValueHandler<T, String> static <T> @NotNull ValueHandler<T, Object> toObject()
-
Method Details
-
handle
@Nullable R handle(@NotNull @NotNull ConfigurationHolder<?> holder, @NotNull T data) throws Exception - Throws:
Exception
-
andThen
-
compose
-
compose
-
identity
-
toObject
-
stringValue
-
deserialize
-
required
-
required
-