Module io.github.mmm.property
Class PropertyFactoryDouble
java.lang.Object
io.github.mmm.property.factory.AbstractPropertyFactory<Double,DoubleProperty>
io.github.mmm.property.number.doubles.PropertyFactoryDouble
- All Implemented Interfaces:
PropertyFactory<Double,
DoubleProperty>
Implementation of
PropertyFactory
for DoubleProperty
.- Since:
- 1.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String name, Class<? extends Double> valueClass, PropertyMetadata<Double> metadata, WritableProperty<?> valueProperty) Creates a new instance of the property.Class<? extends ReadableProperty<Double>>
Class<? extends WritableProperty<Double>>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.mmm.property.factory.PropertyFactory
isPolymorphic
-
Constructor Details
-
PropertyFactoryDouble
public PropertyFactoryDouble()
-
-
Method Details
-
getValueClass
- Returns:
- the
Class
of theproperty value
. May benull
for a generic property.
-
getReadableInterface
- Returns:
- the
Class
reflecting theReadableProperty
interface. May benull
if no dedicated readable interface exists.
-
getWritableInterface
- Returns:
- the
Class
reflecting theWritableProperty
interface. May benull
if no dedicated writable interface exists.
-
getImplementationClass
- Returns:
- the
Class
reflecting theWritableProperty
implementation.
-
create
public DoubleProperty create(String name, Class<? extends Double> valueClass, PropertyMetadata<Double> metadata, WritableProperty<?> valueProperty) Description copied from interface:PropertyFactory
Creates a new instance of the property.- Parameters:
name
- theproperty name
.valueClass
- thevalue class
.metadata
- themetadata
.valueProperty
- the optionalvalue property
. Will typically benull
.- Returns:
- the new instance of the property.
-