Package com.thaiopensource.util
Class SinglePropertyMap<T>
- java.lang.Object
-
- com.thaiopensource.util.SinglePropertyMap<T>
-
- All Implemented Interfaces:
PropertyMap
public class SinglePropertyMap<T> extends java.lang.Object implements PropertyMap
-
-
Field Summary
-
Fields inherited from interface com.thaiopensource.util.PropertyMap
EMPTY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(PropertyId<?> pid)<V> Vget(PropertyId<V> pid)PropertyId<?>getKey(int i)static <T> SinglePropertyMapnewInstance(PropertyId<T> pid, T value)intsize()
-
-
-
Method Detail
-
get
public <V> V get(PropertyId<V> pid)
- Specified by:
getin interfacePropertyMap
-
contains
public boolean contains(PropertyId<?> pid)
- Specified by:
containsin interfacePropertyMap
-
size
public int size()
- Specified by:
sizein interfacePropertyMap
-
getKey
public PropertyId<?> getKey(int i)
- Specified by:
getKeyin interfacePropertyMap
-
newInstance
public static <T> SinglePropertyMap newInstance(PropertyId<T> pid, T value)
-
-