static class OptionValue.SingleOverrideScope extends OptionValue.OverrideScope
Modifier and Type | Field and Description |
---|---|
private OptionValue<?> |
option |
private Object |
value |
Constructor and Description |
---|
SingleOverrideScope(OptionValue<?> option,
Object value) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addToInherited(Map<OptionValue<?>,Object> inherited) |
void |
close() |
(package private) <T> T |
getOverride(OptionValue<T> key) |
(package private) void |
getOverrides(OptionValue<?> key,
Collection<Object> c) |
getDerived
private final OptionValue<?> option
public SingleOverrideScope(OptionValue<?> option, Object value)
void addToInherited(Map<OptionValue<?>,Object> inherited)
addToInherited
in class OptionValue.OverrideScope
<T> T getOverride(OptionValue<T> key)
getOverride
in class OptionValue.OverrideScope
void getOverrides(OptionValue<?> key, Collection<Object> c)
getOverrides
in class OptionValue.OverrideScope
public void close()
close
in interface AutoCloseable
close
in class OptionValue.OverrideScope