Uses of Interface
cc.carm.lib.configuration.function.DataFunction
-
-
Uses of DataFunction in cc.carm.lib.configuration.adapter
Methods in cc.carm.lib.configuration.adapter with parameters of type DataFunction Modifier and Type Method Description <FROM,TO>
voidValueAdapterRegistry. register(@NotNull ValueType<FROM> from, @NotNull ValueType<TO> to, @Nullable DataFunction<FROM,TO> parser, @Nullable DataFunction<TO,FROM> serializer)<FROM,TO>
voidValueAdapterRegistry. register(@NotNull java.lang.Class<FROM> from, @NotNull java.lang.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 DataFunction Modifier and Type Method Description static <T> PrimitiveAdapter<T>PrimitiveAdapter. of(@NotNull java.lang.Class<T> clazz, @NotNull DataFunction<java.lang.Object,T> function)static <T extends java.lang.Number>
PrimitiveAdapter<T>PrimitiveAdapter. ofNumber(@NotNull java.lang.Class<T> numberClass, @NotNull DataFunction<java.lang.Number,T> castFunction, @NotNull DataFunction<java.lang.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 DataFunction Modifier and Type Method Description SELFAbstractSectionBuilder. parse(@NotNull DataFunction<ConfigureSection,PARAM> valueParser)SELFAbstractSourceBuilder. parse(@NotNull DataFunction<SOURCE,PARAM> parser)SELFAbstractSectionBuilder. serialize(@NotNull DataFunction<PARAM,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer)SELFAbstractSourceBuilder. serialize(@NotNull DataFunction<PARAM,SOURCE> serializer) -
Uses of DataFunction in cc.carm.lib.configuration.builder.map
Methods in cc.carm.lib.configuration.builder.map with parameters of type DataFunction Modifier and Type Method Description @NotNull SectionMapBuilder<MAP,K,V>SectionMapBuilder. parseKey(@NotNull DataFunction<java.lang.String,K> keyParser)@NotNull SourceMapBuilder<MAP,SOURCE,K,V>SourceMapBuilder. parseKey(@NotNull DataFunction<java.lang.String,K> keyParser)@NotNull SectionMapBuilder<MAP,K,V>SectionMapBuilder. serializeKey(@NotNull DataFunction<K,java.lang.String> keySerializer)@NotNull SourceMapBuilder<MAP,SOURCE,K,V>SourceMapBuilder. serializeKey(@NotNull DataFunction<K,java.lang.String> keySerializer) -
Uses of DataFunction in cc.carm.lib.configuration.function
Methods in cc.carm.lib.configuration.function that return DataFunction Modifier and Type Method Description default <V> @NotNull DataFunction<T,V>DataFunction. andThen(@NotNull DataFunction<? super R,V> after)static @NotNull DataFunction<java.lang.Object,java.lang.Boolean>DataFunction. booleanValue()static @NotNull DataFunction<java.lang.Object,java.lang.Byte>DataFunction. byteValue()static <V> @NotNull DataFunction<java.lang.String,V>DataFunction. castFromString(java.lang.Class<V> valueClass)static <V> @NotNull DataFunction<java.lang.Object,V>DataFunction. castObject(java.lang.Class<V> valueClass)static <T> @NotNull DataFunction<T,java.lang.String>DataFunction. castToString()static @NotNull DataFunction<java.lang.Object,java.lang.Double>DataFunction. doubleValue()static @NotNull DataFunction<java.lang.Object,java.lang.Float>DataFunction. floatValue()static <T> @NotNull DataFunction<T,T>DataFunction. identity()static <T> @NotNull DataFunction<T,T>DataFunction. identity(java.lang.Class<T> type)static @NotNull DataFunction<java.lang.Object,java.lang.Integer>DataFunction. intValue()static @NotNull DataFunction<java.lang.Object,java.lang.Long>DataFunction. longValue()static <V> @NotNull DataFunction<java.lang.String,V>DataFunction. parseString(java.lang.Class<V> valueClass)static <T,V>
@NotNull DataFunction<T,V>DataFunction. required()static @NotNull DataFunction<java.lang.Object,java.lang.Short>DataFunction. shortValue()static <T> @NotNull DataFunction<T,java.lang.Object>DataFunction. toObject()Methods in cc.carm.lib.configuration.function with parameters of type DataFunction Modifier and Type Method Description default <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 DataFunction Modifier and Type Method Description <FROM,TO>
SELFConfigurationFactory. adapter(@NotNull ValueType<FROM> from, @NotNull ValueType<TO> to, @NotNull DataFunction<FROM,TO> parser, @NotNull DataFunction<TO,FROM> serializer)<FROM,TO>
SELFConfigurationFactory. adapter(@NotNull java.lang.Class<FROM> from, @NotNull java.lang.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 DataFunction Modifier and Type Method Description default <T> TConfigureSection. get(@NotNull java.lang.String path, @NotNull DataFunction<@Nullable java.lang.Object,T> parser)Get the value of the path using a parser function, if the path does not exist, return NULL.default <T> TConfigureSection. get(@NotNull java.lang.String path, T defaultValue, @NotNull DataFunction<java.lang.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 java.util.Collection<T>>
CConfigureSection. getCollection(@NotNull java.lang.String path, @NotNull java.util.function.Supplier<C> constructor, @NotNull DataFunction<java.lang.Object,T> parser)Get the specific type of collection from the section.default <V> @NotNull java.util.List<V>ConfigureSection. getList(@NotNull java.lang.String path, @NotNull DataFunction<java.lang.Object,V> parser)Get a list of values from the sectionstatic <T,C extends java.util.Collection<T>>
CConfigureSection. parseCollection(@Nullable java.util.List<?> data, @NotNull java.util.function.Supplier<C> constructor, @NotNull DataFunction<java.lang.Object,T> parser)
-