Class SettableExtractedInstance<T,​S>

  • Type Parameters:
    T - type for the container setting
    S - 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 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 Detail

      • myConsumerKey

        @NotNull
        private final @NotNull DataKey<java.util.function.Consumer<S>> myConsumerKey
      • myDataExtractor

        @NotNull
        private final @NotNull java.util.function.Function<T,​S> myDataExtractor
    • Constructor Detail

      • SettableExtractedInstance

        public SettableExtractedInstance​(@NotNull
                                         @NotNull DataKey<java.util.function.Consumer<S>> consumerKey,
                                         @NotNull
                                         @NotNull java.util.function.Function<T,​S> dataExtractor)
    • 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)