@FunctionalInterface public interface StaticContextCalculator extends ContextCalculator<Object>
ContextCalculator which provides the same context
regardless of the subject.| Modifier and Type | Method and Description |
|---|---|
MutableContextSet |
giveApplicableContext(MutableContextSet accumulator)
Adds this calculators context to the given accumulator.
|
default MutableContextSet |
giveApplicableContext(Object subject,
MutableContextSet accumulator)
Deprecated.
|
@Nonnull MutableContextSet giveApplicableContext(@Nonnull MutableContextSet accumulator)
accumulator - a map of contexts to add to@Nonnull @Deprecated default 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 toCopyright © 2018. All rights reserved.