- java.lang.Object
-
- io.github.mmm.property.factory.AbstractPropertyFactory<Range<V>,RangeProperty<V>>
-
- io.github.mmm.property.range.PropertyFactoryRange<V>
-
- Type Parameters:
V
- type of theRange
values.
- All Implemented Interfaces:
PropertyFactory<Range<V>,RangeProperty<V>>
public class PropertyFactoryRange<V> extends AbstractPropertyFactory<Range<V>,RangeProperty<V>>
Implementation ofPropertyFactory
forRangeProperty
.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description PropertyFactoryRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeProperty
create(String name, Class<? extends Range<V>> valueClass, PropertyMetadata<Range<V>> metadata)
Creates a new instance of the property.Class<RangeProperty<V>>
getImplementationClass()
Class<? extends ReadableProperty<Range<V>>>
getReadableInterface()
Class<? extends Range<V>>
getValueClass()
Class<? extends WritableProperty<Range<V>>>
getWritableInterface()
-
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
-
-
-
-
Method Detail
-
getValueClass
public Class<? extends Range<V>> getValueClass()
- Returns:
- the
Class
of theproperty value
. May benull
for a generic property.
-
getReadableInterface
public Class<? extends ReadableProperty<Range<V>>> getReadableInterface()
- Returns:
- the
Class
reflecting theReadableProperty
interface. May benull
if no dedicated readable interface exists.
-
getWritableInterface
public Class<? extends WritableProperty<Range<V>>> getWritableInterface()
- Returns:
- the
Class
reflecting theWritableProperty
interface. May benull
if no dedicated writable interface exists.
-
getImplementationClass
public Class<RangeProperty<V>> getImplementationClass()
- Returns:
- the
Class
reflecting theWritableProperty
implementation.
-
create
public RangeProperty create(String name, Class<? extends Range<V>> valueClass, PropertyMetadata<Range<V>> metadata)
Description copied from interface:PropertyFactory
Creates a new instance of the property.- Parameters:
name
- theproperty name
.valueClass
- thevalue class
.metadata
- TODO- Returns:
- the new instance of the property.
-
-