org.ini4j
Class BasicOptionMap
Object
org.ini4j.BasicMultiMap<K,V>
org.ini4j.CommonMultiMap<String,String>
org.ini4j.BasicOptionMap
- All Implemented Interfaces:
- Serializable, Map<String,String>, CommentedMap<String,String>, MultiMap<String,String>, OptionMap
- Direct Known Subclasses:
- Options
public class BasicOptionMap
- extends CommonMultiMap<String,String>
- implements OptionMap
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface Map |
Map.Entry<K,V> |
Method Summary |
void |
add(String key,
Object value)
|
void |
add(String key,
Object value,
int index)
|
|
as(Class<T> clazz)
|
|
as(Class<T> clazz,
String keyPrefix)
|
String |
fetch(Object key)
|
|
fetch(Object key,
Class<T> clazz)
|
|
fetch(Object key,
Class<T> clazz,
T defaultValue)
|
String |
fetch(Object key,
int index)
|
|
fetch(Object key,
int index,
Class<T> clazz)
|
String |
fetch(Object key,
String defaultValue)
|
|
fetchAll(Object key,
Class<T> clazz)
|
void |
from(Object bean)
|
void |
from(Object bean,
String keyPrefix)
|
|
get(Object key,
Class<T> clazz)
|
|
get(Object key,
Class<T> clazz,
T defaultValue)
|
|
get(Object key,
int index,
Class<T> clazz)
|
String |
get(Object key,
String defaultValue)
|
|
getAll(Object key,
Class<T> clazz)
|
String |
put(String key,
Object value)
|
String |
put(String key,
Object value,
int index)
|
void |
putAll(String key,
Object value)
|
void |
to(Object bean)
|
void |
to(Object bean,
String keyPrefix)
|
Methods inherited from class org.ini4j.BasicMultiMap |
add, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, values |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
BasicOptionMap
public BasicOptionMap()
BasicOptionMap
public BasicOptionMap(boolean propertyFirstUpper)
getAll
public <T> T getAll(Object key,
Class<T> clazz)
- Specified by:
getAll
in interface OptionMap
add
public void add(String key,
Object value)
- Specified by:
add
in interface OptionMap
add
public void add(String key,
Object value,
int index)
- Specified by:
add
in interface OptionMap
as
public <T> T as(Class<T> clazz)
- Specified by:
as
in interface OptionMap
as
public <T> T as(Class<T> clazz,
String keyPrefix)
- Specified by:
as
in interface OptionMap
fetch
public String fetch(Object key)
- Specified by:
fetch
in interface OptionMap
fetch
public String fetch(Object key,
String defaultValue)
- Specified by:
fetch
in interface OptionMap
fetch
public String fetch(Object key,
int index)
- Specified by:
fetch
in interface OptionMap
fetch
public <T> T fetch(Object key,
Class<T> clazz)
- Specified by:
fetch
in interface OptionMap
fetch
public <T> T fetch(Object key,
Class<T> clazz,
T defaultValue)
- Specified by:
fetch
in interface OptionMap
fetch
public <T> T fetch(Object key,
int index,
Class<T> clazz)
- Specified by:
fetch
in interface OptionMap
fetchAll
public <T> T fetchAll(Object key,
Class<T> clazz)
- Specified by:
fetchAll
in interface OptionMap
from
public void from(Object bean)
- Specified by:
from
in interface OptionMap
from
public void from(Object bean,
String keyPrefix)
- Specified by:
from
in interface OptionMap
get
public <T> T get(Object key,
Class<T> clazz)
- Specified by:
get
in interface OptionMap
get
public String get(Object key,
String defaultValue)
- Specified by:
get
in interface OptionMap
get
public <T> T get(Object key,
Class<T> clazz,
T defaultValue)
- Specified by:
get
in interface OptionMap
get
public <T> T get(Object key,
int index,
Class<T> clazz)
- Specified by:
get
in interface OptionMap
put
public String put(String key,
Object value)
- Specified by:
put
in interface OptionMap
put
public String put(String key,
Object value,
int index)
- Specified by:
put
in interface OptionMap
putAll
public void putAll(String key,
Object value)
- Specified by:
putAll
in interface OptionMap
to
public void to(Object bean)
- Specified by:
to
in interface OptionMap
to
public void to(Object bean,
String keyPrefix)
- Specified by:
to
in interface OptionMap
Copyright © 2011. All Rights Reserved.