Module io.github.mmm.base
Package io.github.mmm.base.range
Class NumberRangeBean<V extends Number & Comparable<?>>
java.lang.Object
io.github.mmm.base.range.AbstractRange<V>
io.github.mmm.base.range.AbstractRangeBean<V>
io.github.mmm.base.range.NumberRangeBean<V>
- Type Parameters:
V- type of the contained values.
- All Implemented Interfaces:
NumberRange<V>,Range<V>,WritableRange<V>
public class NumberRangeBean<V extends Number & Comparable<?>>
extends AbstractRangeBean<V>
implements NumberRange<V>
Implementation of
NumberRange as mutable AbstractRangeBean bean.- 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
ConstructorsConstructorDescriptionNumberRangeBean(NumberType<V> type) The constructor.NumberRangeBean(NumberType<V> type, V min, V max) The constructor. -
Method Summary
Methods inherited from class io.github.mmm.base.range.AbstractRangeBean
create, getMax, getMin, onValueChange, setMax, setMin, withMethods 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.NumberRange
clip, fromFactor, toFactor, wrapMethods inherited from interface io.github.mmm.base.range.Range
clip, contains, getComparator, getMax, getMin, intersection, isUnbounded, with, withMax, withMin
-
Constructor Details
-
NumberRangeBean
The constructor.- Parameters:
type- thenumber type.
-
NumberRangeBean
The constructor.- Parameters:
type- thenumber type.min- theminimum.max- themaximum.
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceNumberRange<V extends Number & Comparable<?>>- Returns:
- the
NumberTypeof this range. May benullif unbounded.
-