|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.configuration.MappedConfiguration<K,V>
K - the type of the key (has to be "JAXB-able")V - the type of the value (has to be "JAXB-able")public class MappedConfiguration<K,V>
Provides key-based mapping for configurations.
| Nested Class Summary | |
|---|---|
static class |
MappedConfiguration.MappedConfigurationEntry<K,V>
The MappedConfigurationEntry as used by
MappedConfiguration. |
| Constructor Summary | |
|---|---|
protected |
MappedConfiguration()
The default constructor. |
|
MappedConfiguration(java.util.Collection<? extends MappedConfiguration.MappedConfigurationEntry<K,V>> e)
The constructor that sets the MappedConfigurationEntrys. |
| Method Summary | |
|---|---|
V |
get(K k)
Returns the value of the MappedConfigurationEntry with the
given key, or null. |
java.util.Collection<MappedConfiguration.MappedConfigurationEntry<K,V>> |
getMappings()
Returns an unmodifiable Collection of the
MappedConfigurationEntrys. |
protected void |
set(K k, V v)
Either sets the value of the MappedConfigurationEntry with
the given key to the given value, or adds a new
MappedConfigurationEntry with the given key and value. |
protected void |
setMappings(java.util.Collection<? extends MappedConfiguration.MappedConfigurationEntry<K,V>> e)
Sets the MappedConfigurationEntrys. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MappedConfiguration()
public MappedConfiguration(java.util.Collection<? extends MappedConfiguration.MappedConfigurationEntry<K,V>> e)
MappedConfigurationEntrys.
e - the MappedConfigurationEntrys to set.| Method Detail |
|---|
public final java.util.Collection<MappedConfiguration.MappedConfigurationEntry<K,V>> getMappings()
Collection of the
MappedConfigurationEntrys.
Collection of the
MappedConfigurationEntrys.protected final void setMappings(java.util.Collection<? extends MappedConfiguration.MappedConfigurationEntry<K,V>> e)
MappedConfigurationEntrys.
e - the MappedConfigurationEntrys to set.public final V get(K k)
MappedConfigurationEntry with the
given key, or null.
k - the key
nullprotected final void set(K k, V v)
MappedConfigurationEntry with
the given key to the given value, or adds a new
MappedConfigurationEntry with the given key and value.
k - the keyv - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||