Package gw.internal.gosu.properties
Class EmptyPropertySet
- java.lang.Object
-
- gw.internal.gosu.properties.EmptyPropertySet
-
- All Implemented Interfaces:
PropertySet
public class EmptyPropertySet extends java.lang.Object implements PropertySet
Property set with no properties
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_name
-
Constructor Summary
Constructors Constructor Description EmptyPropertySet(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getKeys()The set of keys which can be used to look up values in this property setjava.lang.StringgetName()The name of the property set, which will be used as the name of the typejava.lang.StringgetValue(java.lang.String key)Get the value corresponding to the given key
-
-
-
Method Detail
-
getKeys
public java.util.Set<java.lang.String> getKeys()
Description copied from interface:PropertySetThe set of keys which can be used to look up values in this property set- Specified by:
getKeysin interfacePropertySet- Returns:
- a non null set containing the keys
-
getName
public java.lang.String getName()
Description copied from interface:PropertySetThe name of the property set, which will be used as the name of the type- Specified by:
getNamein interfacePropertySet- Returns:
- a non null name
-
getValue
public java.lang.String getValue(java.lang.String key)
Description copied from interface:PropertySetGet the value corresponding to the given key- Specified by:
getValuein interfacePropertySet- Parameters:
key- the key, never null- Returns:
- the value corresponding to the given key or null if there is no corresponding value
-
-