move unwrapped() return type specialization from AbstractConfigObject to ConfigObject

This commit is contained in:
Havoc Pennington 2011-11-10 20:19:26 -05:00
parent f169f12d43
commit 8ea188ed59
2 changed files with 7 additions and 3 deletions

View File

@ -25,6 +25,13 @@ import java.util.Map;
*/
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);
Number getNumber(String path);

View File

@ -25,9 +25,6 @@ abstract class AbstractConfigObject extends AbstractConfigValue implements
this.transformer = transformer;
}
@Override
abstract public Map<String, Object> unwrapped();
/**
* This looks up the key with no transformation or type conversion of any
* kind, and returns null if the key is not present.