Interface ValueHandler<T,R>
-
- 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 ValueHandler<T,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <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)Rhandle(@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>required(ValueType<V> type)static <T> @NotNull ValueHandler<T,java.lang.String>stringValue()static <T> @NotNull ValueHandler<T,java.lang.Object>toObject()
-
-
-
Method Detail
-
handle
@Nullable R handle(@NotNull @NotNull ConfigurationHolder<?> holder, @NotNull T data) throws java.lang.Exception
- Throws:
java.lang.Exception
-
andThen
default <V> ValueHandler<T,V> andThen(@NotNull @NotNull ValueHandler<R,V> after)
-
compose
default <V> ValueHandler<V,R> compose(@NotNull @NotNull ValueHandler<? super V,? extends T> before)
-
compose
default <V> ValueHandler<V,R> compose(@NotNull @NotNull DataFunction<? super V,? extends T> before)
-
identity
@Contract(pure=true) @NotNull static <T> @NotNull ValueHandler<T,T> identity()
-
toObject
@Contract(pure=true) @NotNull static <T> @NotNull ValueHandler<T,java.lang.Object> toObject()
-
stringValue
@Contract(pure=true) @NotNull static <T> @NotNull ValueHandler<T,java.lang.String> stringValue()
-
deserialize
@Contract(pure=true) @NotNull static <O,T> @NotNull ValueHandler<O,T> deserialize(ValueType<T> to)
-
required
@Contract(pure=true) @NotNull static <T,V> @NotNull ValueHandler<T,V> required()
-
required
@Contract(pure=true) @NotNull static <T,V> @NotNull ValueHandler<T,V> required(ValueType<V> type)
-
-