org.jogre.common.util
Class JogrePropertyHash
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.jogre.common.util.JogrePropertyHash
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- public class JogrePropertyHash
- extends HashMap
Convience class for storing key/values. This class extends the
HashMap class from the Sun API but adds additional information
for packing / unpacking into a String of format
"key1=value1, key2=value2, ... ".
- Version:
- Alpha 0.2.1
- Author:
- Bob Marks
- See Also:
- Serialized Form
Constructor Summary |
JogrePropertyHash()
Empty constructor which doesn't take any hash values. |
JogrePropertyHash(String properties)
This constructor converts a String of format:
"key1=value1, key2=value2, ... |
Method Summary |
String |
toString()
Return the contents of the HashMap of format:
"key1=value1, key2=value2, ... |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
JogrePropertyHash
public JogrePropertyHash()
- Empty constructor which doesn't take any hash values.
JogrePropertyHash
public JogrePropertyHash(String properties)
- This constructor converts a String of format:
"key1=value1, key2=value2, ... "
into a HashMap.
toString
public String toString()
- Return the contents of the HashMap of format:
"key1=value1, key2=value2, ... "
into a String.
- See Also:
Object.toString()