com.thaiopensource.util
Class PropertyMapBuilder.PropertyMapImpl

java.lang.Object
  extended by com.thaiopensource.util.PropertyMapBuilder.PropertyMapImpl
All Implemented Interfaces:
PropertyMap
Enclosing class:
PropertyMapBuilder

private static class PropertyMapBuilder.PropertyMapImpl
extends Object
implements PropertyMap


Field Summary
private  PropertyId[] keys
           
private  Hashtable map
           
 
Fields inherited from interface com.thaiopensource.util.PropertyMap
EMPTY
 
Constructor Summary
private PropertyMapBuilder.PropertyMapImpl(Hashtable map, PropertyId[] keys)
           
 
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

map

private final Hashtable map

keys

private final PropertyId[] keys
Constructor Detail

PropertyMapBuilder.PropertyMapImpl

private PropertyMapBuilder.PropertyMapImpl(Hashtable map,
                                           PropertyId[] keys)
Method Detail

get

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

size

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

contains

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

getKey

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