Module io.github.mmm.base
Package io.github.mmm.base.range
Class AbstractRangeBean<V extends Comparable<?>>
java.lang.Object
io.github.mmm.base.range.AbstractRange<V>
io.github.mmm.base.range.AbstractRangeBean<V>
- Type Parameters:
V- type of the contained values.
- All Implemented Interfaces:
Range<V>,WritableRange<V>
- Direct Known Subclasses:
NumberRangeBean
public abstract class AbstractRangeBean<V extends Comparable<?>>
extends AbstractRange<V>
implements WritableRange<V>
Implementation of
WritableRange for UiNumericInput.- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface io.github.mmm.base.range.Range
BOUND_END_EXCLUSIVE, BOUND_END_INCLUSIVE, BOUND_SEPARATOR, BOUND_START_EXCLUSIVE, BOUND_START_INCLUSIVE, MAX_UNBOUND, MIN_UNBOUND, PROPERTY_MAX, PROPERTY_MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.mmm.base.range.AbstractRange
equals, hashCode, intersection, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.range.Range
clip, contains, getComparator, intersection, isUnbounded, withMax, withMin
-
Constructor Details
-
Method Details
-
getMin
- Specified by:
getMinin interfaceRange<V extends Comparable<?>>- Returns:
- the lower bound of this range or
nullif no lower bound is defined. Has to be less thanmaxif both boundaries are notnull.
-
setMin
- Specified by:
setMinin interfaceWritableRange<V extends Comparable<?>>- Parameters:
min- the new value ofRange.getMin().
-
getMax
- Specified by:
getMaxin interfaceRange<V extends Comparable<?>>- Returns:
- the upper bound of this range or
nullif no upper bound is defined. Has to be greater thanminif both boundaries are notnull.
-
setMax
- Specified by:
setMaxin interfaceWritableRange<V extends Comparable<?>>- Parameters:
max- the new value ofRange.getMax().
-
onValueChange
protected void onValueChange() -
with
- Specified by:
within interfaceRange<V extends Comparable<?>>- Overrides:
within classAbstractRange<V extends Comparable<?>>- Parameters:
minimum- the newminimum.maximum- the newmaximum.- Returns:
- a new
Rangewith the given boundaries.
-
create
- Specified by:
createin classAbstractRange<V extends Comparable<?>>- Parameters:
minimum- the newminimum.maximum- the newmaximum.- Returns:
- a new
Rangewith the given boundaries. - See Also:
-