mirror of
https://github.com/lightbend/config.git
synced 2025-03-22 07:10:23 +08:00
move unwrapped() return type specialization from AbstractConfigObject to ConfigObject
This commit is contained in:
parent
f169f12d43
commit
8ea188ed59
@ -25,6 +25,13 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public interface ConfigObject extends ConfigValue, Map<String, ConfigValue> {
|
public interface ConfigObject extends ConfigValue, Map<String, ConfigValue> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Recursively unwraps the object, returning a map from String to whatever
|
||||||
|
* plain Java values are unwrapped from the object's values.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
Map<String, Object> unwrapped();
|
||||||
|
|
||||||
boolean getBoolean(String path);
|
boolean getBoolean(String path);
|
||||||
|
|
||||||
Number getNumber(String path);
|
Number getNumber(String path);
|
||||||
|
@ -25,9 +25,6 @@ abstract class AbstractConfigObject extends AbstractConfigValue implements
|
|||||||
this.transformer = transformer;
|
this.transformer = transformer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
abstract public Map<String, Object> unwrapped();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This looks up the key with no transformation or type conversion of any
|
* This looks up the key with no transformation or type conversion of any
|
||||||
* kind, and returns null if the key is not present.
|
* kind, and returns null if the key is not present.
|
||||||
|
Loading…
Reference in New Issue
Block a user