Uses of Interface
cc.carm.lib.configuration.function.DataFunction
Packages that use DataFunction
Package
Description
-
Uses of DataFunction in cc.carm.lib.configuration.adapter
Methods in cc.carm.lib.configuration.adapter with parameters of type DataFunctionModifier and TypeMethodDescription<FROM,
TO> void ValueAdapterRegistry.register
(@NotNull ValueType<FROM> from, @NotNull ValueType<TO> to, @Nullable DataFunction<FROM, TO> parser, @Nullable DataFunction<TO, FROM> serializer) <FROM,
TO> void ValueAdapterRegistry.register
(@NotNull Class<FROM> from, @NotNull Class<TO> to, @Nullable DataFunction<FROM, TO> parser, @Nullable DataFunction<TO, FROM> serializer) -
Uses of DataFunction in cc.carm.lib.configuration.adapter.strandard
Methods in cc.carm.lib.configuration.adapter.strandard with parameters of type DataFunctionModifier and TypeMethodDescriptionstatic <T> PrimitiveAdapter
<T> PrimitiveAdapter.of
(@NotNull Class<T> clazz, @NotNull DataFunction<Object, T> function) static <T extends Number>
PrimitiveAdapter<T> PrimitiveAdapter.ofNumber
(@NotNull Class<T> numberClass, @NotNull DataFunction<Number, T> castFunction, @NotNull DataFunction<String, T> parseFunction) -
Uses of DataFunction in cc.carm.lib.configuration.builder.impl
Methods in cc.carm.lib.configuration.builder.impl with parameters of type DataFunctionModifier and TypeMethodDescriptionAbstractSectionBuilder.parse
(@NotNull DataFunction<ConfigureSection, UNIT> valueParser) AbstractSourceBuilder.parse
(@NotNull DataFunction<SOURCE, UNIT> parser) AbstractSectionBuilder.serialize
(@NotNull DataFunction<UNIT, ? extends Map<String, Object>> serializer) AbstractSourceBuilder.serialize
(@NotNull DataFunction<UNIT, SOURCE> serializer) -
Uses of DataFunction in cc.carm.lib.configuration.builder.map
Methods in cc.carm.lib.configuration.builder.map with parameters of type DataFunctionModifier and TypeMethodDescription@NotNull SectionMapBuilder
<MAP, K, V> SectionMapBuilder.parseKey
(@NotNull DataFunction<String, K> keyParser) @NotNull SourceMapBuilder
<MAP, SOURCE, K, V> SourceMapBuilder.parseKey
(@NotNull DataFunction<String, K> keyParser) @NotNull SectionMapBuilder
<MAP, K, V> SectionMapBuilder.serializeKey
(@NotNull DataFunction<K, String> keySerializer) @NotNull SourceMapBuilder
<MAP, SOURCE, K, V> SourceMapBuilder.serializeKey
(@NotNull DataFunction<K, String> keySerializer) -
Uses of DataFunction in cc.carm.lib.configuration.function
Methods in cc.carm.lib.configuration.function that return DataFunctionModifier and TypeMethodDescriptiondefault <V> @NotNull DataFunction
<T, V> DataFunction.andThen
(@NotNull DataFunction<? super R, V> after) static @NotNull DataFunction
<Object, Boolean> DataFunction.booleanValue()
static @NotNull DataFunction
<Object, Byte> DataFunction.byteValue()
static <V> @NotNull DataFunction
<String, V> DataFunction.castFromString
(Class<V> valueClass) static <V> @NotNull DataFunction
<Object, V> DataFunction.castObject
(Class<V> valueClass) static <T> @NotNull DataFunction
<T, String> DataFunction.castToString()
static @NotNull DataFunction
<Object, Double> DataFunction.doubleValue()
static @NotNull DataFunction
<Object, Float> DataFunction.floatValue()
static <T> @NotNull DataFunction
<T, T> DataFunction.identity()
static <T> @NotNull DataFunction
<T, T> static @NotNull DataFunction
<Object, Integer> DataFunction.intValue()
static @NotNull DataFunction
<Object, Long> DataFunction.longValue()
static <V> @NotNull DataFunction
<String, V> DataFunction.parseString
(Class<V> valueClass) static <T,
V> @NotNull DataFunction <T, V> DataFunction.required()
static @NotNull DataFunction
<Object, Short> DataFunction.shortValue()
static <T> @NotNull DataFunction
<T, Object> DataFunction.toObject()
Methods in cc.carm.lib.configuration.function with parameters of type DataFunctionModifier and TypeMethodDescriptiondefault <V> @NotNull DataFunction
<T, V> DataFunction.andThen
(@NotNull DataFunction<? super R, V> after) default <V> ValueHandler
<V, R> ValueHandler.compose
(@NotNull DataFunction<? super V, ? extends T> before) -
Uses of DataFunction in cc.carm.lib.configuration.source
Methods in cc.carm.lib.configuration.source with parameters of type DataFunctionModifier and TypeMethodDescription<FROM,
TO> SELF ConfigurationFactory.adapter
(@NotNull ValueType<FROM> from, @NotNull ValueType<TO> to, @NotNull DataFunction<FROM, TO> parser, @NotNull DataFunction<TO, FROM> serializer) <FROM,
TO> SELF ConfigurationFactory.adapter
(@NotNull Class<FROM> from, @NotNull Class<TO> to, @NotNull DataFunction<FROM, TO> parser, @NotNull DataFunction<TO, FROM> serializer) -
Uses of DataFunction in cc.carm.lib.configuration.source.section
Methods in cc.carm.lib.configuration.source.section with parameters of type DataFunctionModifier and TypeMethodDescriptiondefault <T> T
ConfigureSection.get
(@NotNull String path, @NotNull DataFunction<@Nullable Object, T> parser) Get the value of the path using a parser function, if the path does not exist, return NULL.default <T> T
ConfigureSection.get
(@NotNull String path, T defaultValue, @NotNull DataFunction<Object, T> parser) Get the value of the path using a parser function, if the path does not exist, return the default value.default <T,
C extends Collection<T>>
CConfigureSection.getCollection
(@NotNull String path, @NotNull Supplier<C> constructor, @NotNull DataFunction<Object, T> parser) Get the specific type of collection from current section.default <V> @NotNull List
<V> ConfigureSection.getList
(@NotNull String path, @NotNull DataFunction<Object, V> parser) Get a list of values from current sectionstatic <T,
C extends Collection<T>>
CConfigureSection.parseCollection
(@Nullable List<?> data, @NotNull Supplier<C> constructor, @NotNull DataFunction<Object, T> parser)