org.jogre.common.util
Class JogrePropertyHash

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.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
 
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

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.

Method Detail

toString

public String toString()
Return the contents of the HashMap of format: "key1=value1, key2=value2, ... " into a String.

See Also:
Object.toString()