public abstract static class OptionValue.OverrideScope extends Object implements AutoCloseable
close()
method reverts the option value overriding initiated by
OptionValue.override(OptionValue, Object)
or OptionValue.override(Map)
.Modifier and Type | Field and Description |
---|---|
private Map<DerivedOptionValue<?>,Object> |
derivedCache |
Constructor and Description |
---|
OverrideScope() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
addToInherited(Map<OptionValue<?>,Object> inherited) |
abstract void |
close() |
<T> T |
getDerived(DerivedOptionValue<T> key) |
(package private) abstract <T> T |
getOverride(OptionValue<T> option) |
(package private) abstract void |
getOverrides(OptionValue<?> option,
Collection<Object> c) |
private Map<DerivedOptionValue<?>,Object> derivedCache
public OverrideScope()
public <T> T getDerived(DerivedOptionValue<T> key)
abstract void addToInherited(Map<OptionValue<?>,Object> inherited)
abstract <T> T getOverride(OptionValue<T> option)
abstract void getOverrides(OptionValue<?> option, Collection<Object> c)
public abstract void close()
close
in interface AutoCloseable