Java wrapper around Map-like implementation
I'm looking for a stable and user-friendly wrapper implementation around the Java Map interface. Basically, I would like to use the Android Bundle functionality so that I can do this:
float getFloat(String key, float defaultValue)
void putShort(String key, short value)
String getString(String key, String defaultValue)
void putInt(String key, int value)
etc. I've seen the ResourceBundle class, but I would like more methods than getObject
that getString
.
Are there any other alternatives?
source to share
See apache-commons config:
https://commons.apache.org/proper/commons-configuration/
in particular, map-based configuration .
source to share