Package com.vladsch.flexmark.test.util
Class LoadUnloadDataKeyAggregator
- java.lang.Object
-
- com.vladsch.flexmark.test.util.LoadUnloadDataKeyAggregator
-
- All Implemented Interfaces:
DataKeyAggregator
public class LoadUnloadDataKeyAggregator extends java.lang.Object implements DataKeyAggregator
-
-
Field Summary
Fields Modifier and Type Field Description private static LoadUnloadDataKeyAggregator
INSTANCE
static DataKey<java.util.Collection<Extension>>
LOAD_EXTENSIONS
static DataKey<java.util.Collection<java.lang.Class<? extends Extension>>>
UNLOAD_EXTENSIONS
-
Constructor Summary
Constructors Modifier Constructor Description private
LoadUnloadDataKeyAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull DataHolder
aggregate(@NotNull DataHolder combined)
Combine options by applying aggregate action keys@NotNull DataHolder
aggregateActions(@NotNull DataHolder combined, @NotNull DataHolder other, @NotNull DataHolder overrides)
Combine aggregate action keys from two sets but do not apply them@NotNull DataHolder
clean(DataHolder combined)
Remove any keys which contain aggregation actions and do not represent a state@Nullable java.util.Set<java.lang.Class<?>>
invokeAfterSet()
return a set of aggregator classes this aggregator should run after
-
-
-
Field Detail
-
UNLOAD_EXTENSIONS
public static final DataKey<java.util.Collection<java.lang.Class<? extends Extension>>> UNLOAD_EXTENSIONS
-
INSTANCE
private static final LoadUnloadDataKeyAggregator INSTANCE
-
-
Method Detail
-
aggregate
@NotNull public @NotNull DataHolder aggregate(@NotNull @NotNull DataHolder combined)
Description copied from interface:DataKeyAggregator
Combine options by applying aggregate action keys- Specified by:
aggregate
in interfaceDataKeyAggregator
- Parameters:
combined
- set of combined options (by overwriting or combined by prior aggregator)- Returns:
- combined and cleaned of aggregate action keys, return MutableDataHolder if it was modified so downstream aggregators re-use the mutable
-
aggregateActions
@NotNull public @NotNull DataHolder aggregateActions(@NotNull @NotNull DataHolder combined, @NotNull @NotNull DataHolder other, @NotNull @NotNull DataHolder overrides)
Description copied from interface:DataKeyAggregator
Combine aggregate action keys from two sets but do not apply them- Specified by:
aggregateActions
in interfaceDataKeyAggregator
- Parameters:
combined
- set of combined options (by overwriting or combined by prior aggregator)other
- set of original uncombined optionsoverrides
- overriding set of options- Returns:
- combined aggregate actions from other and overrides overwritten in combined
-
clean
@NotNull public @NotNull DataHolder clean(DataHolder combined)
Description copied from interface:DataKeyAggregator
Remove any keys which contain aggregation actions and do not represent a state- Specified by:
clean
in interfaceDataKeyAggregator
- Parameters:
combined
- combined data holder- Returns:
- cleaned of all aggregate action keys
-
invokeAfterSet
@Nullable public @Nullable java.util.Set<java.lang.Class<?>> invokeAfterSet()
Description copied from interface:DataKeyAggregator
return a set of aggregator classes this aggregator should run after- Specified by:
invokeAfterSet
in interfaceDataKeyAggregator
- Returns:
- keys
-
-