@FunctionalInterface public interface StaticContextCalculator extends ContextCalculator<Object>
ContextCalculator which provides the same context
regardless of the subject.| Modifier and Type | Method and Description |
|---|---|
@NonNull MutableContextSet |
giveApplicableContext(@NonNull MutableContextSet accumulator)
Adds this calculators context to the given accumulator.
|
default @NonNull MutableContextSet |
giveApplicableContext(@Nullable Object subject,
@NonNull MutableContextSet accumulator)
Deprecated.
|
@NonNull MutableContextSet giveApplicableContext(@NonNull MutableContextSet accumulator)
accumulator - a map of contexts to add to@Deprecated default @NonNull MutableContextSet giveApplicableContext(@Nullable Object subject, @NonNull MutableContextSet accumulator)
giveApplicableContext in interface ContextCalculator<Object>subject - the subject to add contexts toaccumulator - a map of contexts to add to