com.thaiopensource.util
Class SinglePropertyMap

java.lang.Object
  extended by com.thaiopensource.util.SinglePropertyMap
All Implemented Interfaces:
PropertyMap

public class SinglePropertyMap
extends Object
implements PropertyMap


Field Summary
 
Fields inherited from interface com.thaiopensource.util.PropertyMap
EMPTY
 
Constructor Summary
SinglePropertyMap(PropertyId pid, Object value)
           
 
Method Summary
 boolean contains(PropertyId pid)
           
 Object get(PropertyId pid)
           
 PropertyId getKey(int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePropertyMap

public SinglePropertyMap(PropertyId pid,
                         Object value)
Method Detail

get

public Object get(PropertyId pid)
Specified by:
get in interface PropertyMap

contains

public boolean contains(PropertyId pid)
Specified by:
contains in interface PropertyMap

size

public int size()
Specified by:
size in interface PropertyMap

getKey

public PropertyId getKey(int i)
Specified by:
getKey in interface PropertyMap