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 boolean
contains(PropertyId<?> pid)
<V> V
get(PropertyId<V> pid)
PropertyId<?>
getKey(int i)
static <T> SinglePropertyMap
newInstance(PropertyId<T> pid, T value)
int
size()
-
-
-
Method Detail
-
get
public <V> V get(PropertyId<V> pid)
- Specified by:
get
in interfacePropertyMap
-
contains
public boolean contains(PropertyId<?> pid)
- Specified by:
contains
in interfacePropertyMap
-
size
public int size()
- Specified by:
size
in interfacePropertyMap
-
getKey
public PropertyId<?> getKey(int i)
- Specified by:
getKey
in interfacePropertyMap
-
newInstance
public static <T> SinglePropertyMap newInstance(PropertyId<T> pid, T value)
-
-