Package com.vladsch.flexmark.util.data
Interface DataKeyAggregator
-
public interface DataKeyAggregator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataHolder
aggregate(DataHolder combined)
Combine options by applying aggregate action keysDataHolder
aggregateActions(DataHolder combined, DataHolder other, DataHolder overrides)
Combine aggregate action keys from two sets but do not apply themDataHolder
clean(DataHolder combined)
Remove any keys which contain aggregation actions and do not represent a statejava.util.Set<java.lang.Class<?>>
invokeAfterSet()
return a set of aggregator classes this aggregator should run after
-
-
-
Method Detail
-
aggregate
@NotNull DataHolder aggregate(@NotNull DataHolder combined)
Combine options by applying aggregate action keys- 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 DataHolder aggregateActions(@NotNull DataHolder combined, @NotNull DataHolder other, @NotNull DataHolder overrides)
Combine aggregate action keys from two sets but do not apply them- 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 DataHolder clean(DataHolder combined)
Remove any keys which contain aggregation actions and do not represent a state- Parameters:
combined
- combined data holder- Returns:
- cleaned of all aggregate action keys
-
invokeAfterSet
@Nullable java.util.Set<java.lang.Class<?>> invokeAfterSet()
return a set of aggregator classes this aggregator should run after- Returns:
- keys
-
-