Module io.github.mmm.property
Class PropertyFactoryFloat
java.lang.Object
io.github.mmm.property.factory.AbstractPropertyFactory<Float,FloatProperty>
io.github.mmm.property.number.floats.PropertyFactoryFloat
- All Implemented Interfaces:
PropertyFactory<Float,
FloatProperty>
Implementation of
PropertyFactory
for FloatProperty
.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String name, Class<? extends Float> valueClass, PropertyMetadata<Float> metadata, WritableProperty<?> valueProperty) Creates a new instance of the property.Class<? extends ReadableProperty<Float>>
Class<? extends WritableProperty<Float>>
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
-
PropertyFactoryFloat
public PropertyFactoryFloat()
-
-
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 FloatProperty create(String name, Class<? extends Float> valueClass, PropertyMetadata<Float> 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.
-