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