Module io.github.mmm.property
Package io.github.mmm.property.range
Class RangeTypeMapper<V extends Comparable<?>>
java.lang.Object
io.github.mmm.value.converter.AbstractTypeMapper<S,T>
io.github.mmm.value.converter.CompositeTypeMapper<io.github.mmm.base.range.Range<V>,V>
io.github.mmm.property.range.RangeTypeMapper<V>
- Type Parameters:
V
- type of theRange
bounds.
- All Implemented Interfaces:
TypeMapper<io.github.mmm.base.range.Range<V>,
V>
public abstract class RangeTypeMapper<V extends Comparable<?>>
extends CompositeTypeMapper<io.github.mmm.base.range.Range<V>,V>
Implementation of
CompositeTypeMapper
for Range
. It will decompose the Range
into its two
bounds: min
and max
.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.value.converter.CompositeTypeMapper
suffix
Fields inherited from interface io.github.mmm.value.converter.TypeMapper
DEFAULT_SEPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionRangeTypeMapper
(Class<? extends V> targetType, RangeTypeMapper<V> next, String suffix) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends Comparable<?>>
RangeTypeMapper<V>io.github.mmm.base.lang.Builder<io.github.mmm.base.range.Range<V>>
io.github.mmm.base.range.Range<V>
Methods inherited from class io.github.mmm.value.converter.CompositeTypeMapper
getSuffix, mapName, next, toSource, with
Methods inherited from class io.github.mmm.value.converter.AbstractTypeMapper
getDeclaration, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.mmm.value.converter.TypeMapper
hasDeclaration, mapName, toSourceNull, toTarget, toTargetNull
-
Constructor Details
-
RangeTypeMapper
The constructor.- Parameters:
targetType
- thetarget type
.next
- theCompositeTypeMapper.next()
mapper.suffix
- thesuffix
.
-
-
Method Details
-
getSourceType
-
getTargetType
-
toSource
-
sourceBuilder
- Specified by:
sourceBuilder
in interfaceTypeMapper<io.github.mmm.base.range.Range<V extends Comparable<?>>,
V extends Comparable<?>> - Specified by:
sourceBuilder
in classCompositeTypeMapper<io.github.mmm.base.range.Range<V extends Comparable<?>>,
V extends Comparable<?>>
-
of
- Type Parameters:
V
- type of theRange
bounds.- Parameters:
valueType
- theClass
reflecting theRange
bounds.- Returns:
- the
RangeTypeMapper
instance.
-