接口 ValueHandler<T,R>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明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) 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()
-
方法详细资料
-
handle
@Nullable R handle(@NotNull @NotNull ConfigurationHolder<?> holder, @NotNull T data) throws Exception - 抛出:
Exception
-
andThen
-
compose
-
compose
-
identity
-
toObject
-
stringValue
-
deserialize
-
required
-
required
-