Package com.macrofocus.common.properties
Class EnumProperties<K>
java.lang.Object
com.macrofocus.common.properties.AbstractProperties<K>
com.macrofocus.common.properties.EnumProperties<K>
- All Implemented Interfaces:
MutableProperties<K>
,Properties<K>
,Iterable<K>
Default data model for a collection of properties.
ToDo: K should extends Enum<K>: EnumProperties<K extends Enum<K>>. Incompatible with JSweet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableProperty<T>
addProperty
(K name, MutableProperty<T> property) <T> MutableProperty<T>
createProperty
(K name, T value) getProperty
(K name) iterator()
<T> MutableProperty<T>
replaceProperty
(K name, MutableProperty<T> property) void
Methods inherited from class com.macrofocus.common.properties.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 java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.macrofocus.common.properties.Properties
addPropertiesListener, addWeakPropertiesListener, removePropertiesListener
-
Constructor Details
-
EnumProperties
-
-
Method Details
-
iterator
-
createProperty
- Specified by:
createProperty
in interfaceMutableProperties<K>
-
addProperty
- Specified by:
addProperty
in interfaceMutableProperties<K>
-
replaceProperty
- Specified by:
replaceProperty
in interfaceMutableProperties<K>
-
getValue
- Specified by:
getValue
in interfaceProperties<K>
-
setValue
- Specified by:
setValue
in interfaceMutableProperties<K>
-
getProperty
- Specified by:
getProperty
in interfaceMutableProperties<K>
- Specified by:
getProperty
in interfaceProperties<K>
-