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) voidMethods inherited from class com.macrofocus.common.properties.AbstractProperties
addPropertiesListener, addWeakPropertiesListener, notifyPropertyChanged, removePropertiesListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.macrofocus.common.properties.Properties
addPropertiesListener, addWeakPropertiesListener, removePropertiesListener
-
Constructor Details
-
EnumProperties
-
-
Method Details
-
iterator
-
createProperty
- Specified by:
createPropertyin interfaceMutableProperties<K>
-
addProperty
- Specified by:
addPropertyin interfaceMutableProperties<K>
-
replaceProperty
- Specified by:
replacePropertyin interfaceMutableProperties<K>
-
getValue
- Specified by:
getValuein interfaceProperties<K>
-
setValue
- Specified by:
setValuein interfaceMutableProperties<K>
-
getProperty
- Specified by:
getPropertyin interfaceMutableProperties<K>- Specified by:
getPropertyin interfaceProperties<K>
-