|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
de.cbse.jeasy.JELocaleProperties
public class JELocaleProperties
This calls extends a HashMap for holding properties as a key <-> value reference. If a locale is active, storing and reading depends on this locale. That means you may store the same key with different values for different locales. See a demonstration in the program JEasyExample tab "Locale".
| Constructor Summary | |
|---|---|
JELocaleProperties()
|
|
JELocaleProperties(java.util.HashMap hashmap)
|
|
JELocaleProperties(JELocaleProperties propertyHashMap)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(JELocale jel,
java.lang.Object key)
Returns the locale value to which the specified key is mapped, |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped, |
java.lang.Object |
get(java.lang.String locale,
java.lang.Object key)
Returns the locale value to which the specified key is mapped, |
java.util.HashMap |
getHashMap()
Gets the default (not localized) HashMap. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this map. |
java.lang.Object |
put(java.lang.String locale,
java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in the locale map. |
java.lang.Object |
remove(JELocale jel,
java.lang.String key)
|
java.lang.Object |
remove(java.lang.Object key)
Returns the value to which the specified key is mapped, |
java.lang.Object |
remove(java.lang.String locale,
java.lang.String key)
Removes a locale key from the locale HashMap. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public JELocaleProperties(JELocaleProperties propertyHashMap)
public JELocaleProperties()
public JELocaleProperties(java.util.HashMap hashmap)
| Method Detail |
|---|
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
key - value -
public java.lang.Object put(java.lang.String locale,
java.lang.String key,
java.lang.Object value)
locale - key - value -
public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class java.util.HashMapkey - the value to which the specified key is mapped,
or null if this map contains no mapping for the key
public java.lang.Object get(java.lang.String locale,
java.lang.Object key)
key - the value to which the specified key is mapped,
or null if this map contains no mapping for the key
public java.lang.Object get(JELocale jel,
java.lang.Object key)
key - the value to which the specified key is mapped,
or null if this map contains no mapping for the keypublic java.util.HashMap getHashMap()
public java.lang.Object remove(JELocale jel,
java.lang.String key)
public java.lang.Object remove(java.lang.String locale,
java.lang.String key)
locale - key - public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class java.util.HashMapkey - the value to which the specified key is mapped,
or null if this map contains no mapping for the keypublic java.lang.String toString()
toString in class java.util.AbstractMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||