Package com.vladsch.flexmark.test.util
Class SettableExtractedInstance<T,S>
- java.lang.Object
-
- com.vladsch.flexmark.test.util.SettableExtractedInstance<T,S>
-
- Type Parameters:
T
- type for the container settingS
- type for the setting
public final class SettableExtractedInstance<T,S> extends java.lang.Object
Instance based on aggregated options used for spec test settings which itself is part of a settable instanceFor example: Rendering profile contains HTML, Parser and CSS settings. Rendering profile and its contained settings can be set by spec options. In order to handle this properly rendering profile settable instance is defined with HTML, Parser and CSS extracted settable instances. thus allowing setting options on contained instances directly or through the rendering profile container, while keeping the results consistent.
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull DataKey<java.util.function.Consumer<S>>
myConsumerKey
private @NotNull java.util.function.Function<T,S>
myDataExtractor
-
Constructor Summary
Constructors Constructor Description SettableExtractedInstance(@NotNull DataKey<java.util.function.Consumer<S>> consumerKey, @NotNull java.util.function.Function<T,S> dataExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aggregate(T instance, @NotNull DataHolder dataHolder)
@NotNull DataHolder
aggregateActions(@NotNull DataHolder dataHolder, @Nullable DataHolder other, @Nullable DataHolder overrides)
-
-
-
Method Detail
-
aggregate
public void aggregate(@NotNull T instance, @NotNull @NotNull DataHolder dataHolder)
-
aggregateActions
@NotNull public @NotNull DataHolder aggregateActions(@NotNull @NotNull DataHolder dataHolder, @Nullable @Nullable DataHolder other, @Nullable @Nullable DataHolder overrides)
-
-