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
private  PropertyId pid
           
private  Object value
           
 
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
 

Field Detail

pid

private final PropertyId pid

value

private final Object value
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