|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.netbilling.util.StringHash
This class is used to store attribte-value String pairs
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
StringHash()
|
|
StringHash(java.util.Hashtable x)
|
|
| Method Summary | |
java.lang.String |
get(java.lang.String key)
Return the value for attribute key, or a blank string ("") if no value exists. |
java.lang.String |
nvl(java.lang.String key,
java.lang.String default_value)
If there is no value for attribute key, or if the value is blank, return default_value. |
void |
set(java.lang.String key,
java.lang.String value)
Set the value for attribute key. |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StringHash()
public StringHash(java.util.Hashtable x)
| Method Detail |
public java.lang.String nvl(java.lang.String key,
java.lang.String default_value)
key - return value for this attributedefault_value - return this string if there's no value for keypublic java.lang.String get(java.lang.String key)
key - return value for this attribute
public void set(java.lang.String key,
java.lang.String value)
key - set value for this attributevalue - set key attribute's value to this string
|
Version 3.1.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||