org.ini4j
Class BasicOptionMap

Object
  extended by org.ini4j.BasicMultiMap<K,V>
      extended by org.ini4j.CommonMultiMap<String,String>
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Constructor Summary
BasicOptionMap()
           
BasicOptionMap(boolean propertyFirstUpper)
           
 
Method Summary
 void add(String key, Object value)
           
 void add(String key, Object value, int index)
           
<T> T
as(Class<T> clazz)
           
<T> T
as(Class<T> clazz, String keyPrefix)
           
 String fetch(Object key)
           
<T> T
fetch(Object key, Class<T> clazz)
           
<T> T
fetch(Object key, Class<T> clazz, T defaultValue)
           
 String fetch(Object key, int index)
           
<T> T
fetch(Object key, int index, Class<T> clazz)
           
 String fetch(Object key, String defaultValue)
           
<T> T
fetchAll(Object key, Class<T> clazz)
           
 void from(Object bean)
           
 void from(Object bean, String keyPrefix)
           
<T> T
get(Object key, Class<T> clazz)
           
<T> T
get(Object key, Class<T> clazz, T defaultValue)
           
<T> T
get(Object key, int index, Class<T> clazz)
           
 String get(Object key, String defaultValue)
           
<T> T
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.CommonMultiMap
clear, getComment, putAll, putComment, remove, remove, removeComment
 
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 org.ini4j.MultiMap
add, add, get, getAll, length, put, putAll, remove
 
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
 
Methods inherited from interface Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

BasicOptionMap

public BasicOptionMap()

BasicOptionMap

public BasicOptionMap(boolean propertyFirstUpper)
Method Detail

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.