Package com.macrofocus.common.properties
Class SimpleProperties
java.lang.Object
com.macrofocus.common.properties.AbstractProperties<String>
com.macrofocus.common.properties.SimpleProperties
- All Implemented Interfaces:
MutableProperties<String>
,Properties<String>
,Iterable<String>
public class SimpleProperties
extends AbstractProperties<String>
implements MutableProperties<String>
Default data model for a collection of properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableProperty<T>
addProperty
(String name, MutableProperty<T> property) <T> MutableProperty<T>
createProperty
(String name, T value) getProperty
(String name) iterator()
<T> MutableProperty<T>
replaceProperty
(String 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
-
SimpleProperties
public SimpleProperties()
-
-
Method Details
-
iterator
-
createProperty
- Specified by:
createProperty
in interfaceMutableProperties<String>
-
addProperty
- Specified by:
addProperty
in interfaceMutableProperties<String>
-
replaceProperty
- Specified by:
replaceProperty
in interfaceMutableProperties<String>
-
getValue
- Specified by:
getValue
in interfaceProperties<String>
-
setValue
- Specified by:
setValue
in interfaceMutableProperties<String>
-
getProperty
- Specified by:
getProperty
in interfaceMutableProperties<String>
- Specified by:
getProperty
in interfaceProperties<String>
-