Class EnumProperties<K extends java.lang.Enum<K>>
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperties<K>
-
- com.macrofocus.properties.implementation.EnumProperties<K>
-
- All Implemented Interfaces:
MutableProperties<K>
,Properties<K>
,java.lang.Iterable<K>
public class EnumProperties<K extends java.lang.Enum<K>> extends AbstractProperties<K> implements MutableProperties<K>
Default data model for a collection of properties.
-
-
Constructor Summary
Constructors Constructor Description EnumProperties(java.lang.Class<K> types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MutableProperty<T>
addProperty(K name, MutableProperty<T> property)
<T> MutableProperty<T>
createProperty(K name, T value)
MutableProperty
getProperty(K name)
java.lang.Object
getValue(K name)
java.util.Iterator<K>
iterator()
<T> MutableProperty<T>
replaceProperty(K name, MutableProperty<T> property)
void
setValue(K name, java.lang.Object value)
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractProperties
addPropertiesListener, addWeakPropertiesListener, notifyPropertyChanged, removePropertiesListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.properties.Properties
addPropertiesListener, addWeakPropertiesListener, removePropertiesListener
-
-
-
-
Constructor Detail
-
EnumProperties
public EnumProperties(java.lang.Class<K> types)
-
-
Method Detail
-
iterator
public java.util.Iterator<K> iterator()
-
createProperty
public <T> MutableProperty<T> createProperty(K name, T value)
- Specified by:
createProperty
in interfaceMutableProperties<K extends java.lang.Enum<K>>
-
addProperty
public <T> MutableProperty<T> addProperty(K name, MutableProperty<T> property)
- Specified by:
addProperty
in interfaceMutableProperties<K extends java.lang.Enum<K>>
-
replaceProperty
public <T> MutableProperty<T> replaceProperty(K name, MutableProperty<T> property)
- Specified by:
replaceProperty
in interfaceMutableProperties<K extends java.lang.Enum<K>>
-
getValue
public java.lang.Object getValue(K name)
- Specified by:
getValue
in interfaceProperties<K extends java.lang.Enum<K>>
-
setValue
public void setValue(K name, java.lang.Object value)
- Specified by:
setValue
in interfaceMutableProperties<K extends java.lang.Enum<K>>
-
getProperty
public MutableProperty getProperty(K name)
- Specified by:
getProperty
in interfaceMutableProperties<K extends java.lang.Enum<K>>
- Specified by:
getProperty
in interfaceProperties<K extends java.lang.Enum<K>>
-
-