接口的使用
cc.carm.lib.configuration.function.ValueValidator
使用ValueValidator的程序包
程序包
说明
-
cc.carm.lib.configuration.builder中ValueValidator的使用
修饰符和类型方法说明AbstractConfigBuilder.validate(@NotNull ValueValidator<? super UNIT> validator) Validate the value with the specified condition.AbstractConfigBuilder.validator(@NotNull ValueValidator<UNIT> validator) Set theValueValidatorfor the value. -
cc.carm.lib.configuration.function中ValueValidator的使用
修饰符和类型方法说明default ValueValidator<T>ValueValidator.and(ValueValidator<? super T> other) static <V> ValueValidator<V>ValueValidator.none()static <V> ValueValidator<V>ValueValidator.nonnull()static <V> ValueValidator<V>static <V extends Number>
ValueValidator<V>ValueValidator.range(V min, V max) static <V extends Number>
ValueValidator<V> -
cc.carm.lib.configuration.source中ValueValidator的使用
类型变量类型为ValueValidator的cc.carm.lib.configuration.source中的方法参数修饰符和类型方法说明<A extends Annotation>
SELFConfigurationFactory.validAnnotation(@NotNull Class<A> annotation, @NotNull Function<A, ValueValidator<Object>> builder) Register a new annotation forValueValidatorto the configuration loader -
cc.carm.lib.configuration.source.loader中ValueValidator的使用
类型变量类型为ValueValidator的cc.carm.lib.configuration.source.loader中的方法参数修饰符和类型方法说明<A extends Annotation>
voidConfigurationInitializer.registerValidAnnotation(@NotNull Class<A> annotation, @NotNull Function<A, ValueValidator<Object>> builder) -
cc.carm.lib.configuration.value中ValueValidator的使用
修饰符和类型方法说明voidValueManifest.validate(@NotNull ValueValidator<UNIT> validator) voidValueManifest.validator(@NotNull ValueValidator<UNIT> validator) 限定符构造器说明ValueManifest(@NotNull ValueType<TYPE> type, @NotNull Supplier<@Nullable TYPE> defaultSupplier, @NotNull ValueValidator<UNIT> validator) ValueManifest(@NotNull ValueType<TYPE> type, @NotNull Supplier<@Nullable TYPE> defaultSupplier, @NotNull ValueValidator<UNIT> validator, @NotNull BiConsumer<@NotNull ConfigurationHolder<?>, @NotNull String> initializer) ValueManifest(@NotNull ValueType<TYPE> type, @NotNull Supplier<@Nullable TYPE> defaultSupplier, @NotNull ValueValidator<UNIT> validator, @NotNull BiConsumer<@NotNull ConfigurationHolder<?>, @NotNull String> initializer, @Nullable ConfigurationHolder<?> holder, @Nullable String path)