Top Description Fields Constructors Methods
com.vladsch.flexmark.test.util

public final Class SettableExtractedInstance<T, S>

extends Object
Class Inheritance
Type Parameters
<T>
type for the container setting
<S>
type for the setting
Imports
com.vladsch.flexmark.util.data.DataHolder, .DataKey, org.jetbrains.annotations.NotNull, .Nullable, java.util.function.Consumer, .Function

Instance based on aggregated options used for spec test settings which itself is part of a settable instance

For 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

Modifier and TypeField and Description
private final @NotNull DataKey<Consumer<S>>
private final @NotNull Function<T, S>

Constructor Summary

AccessConstructor and Description
public
SettableExtractedInstance(@NotNull DataKey<Consumer<S>> consumerKey, @NotNull Function<T, S> dataExtractor)

Method Summary

Modifier and TypeMethod and Description
public void
aggregate(T instance, @NotNull DataHolder dataHolder)

public @NotNull DataHolder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myConsumerKeyback to summary
private final @NotNull DataKey<Consumer<S>> myConsumerKey
Annotations
@NotNull
myDataExtractorback to summary
private final @NotNull Function<T, S> myDataExtractor
Annotations
@NotNull

Constructor Detail

SettableExtractedInstanceback to summary
public SettableExtractedInstance(@NotNull DataKey<Consumer<S>> consumerKey, @NotNull Function<T, S> dataExtractor)

Method Detail

aggregateback to summary
public void aggregate(T instance, @NotNull DataHolder dataHolder)
aggregateActionsback to summary
public @NotNull DataHolder aggregateActions(@NotNull DataHolder dataHolder, @Nullable DataHolder other, @Nullable DataHolder overrides)
Annotations
@NotNull