Module io.github.mmm.base
Package io.github.mmm.base.range
Class AbstractRange<V extends Comparable<?>>
java.lang.Object
io.github.mmm.base.range.AbstractRange<V>
- Type Parameters:
V- type of the contained values.
- All Implemented Interfaces:
Range<V>
- Direct Known Subclasses:
AbstractRangeBean,RangeType
Implementation of
Range.- 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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.range.Range
clip, contains, getComparator, getMax, getMin, isUnbounded, withMax, withMin
-
Constructor Details
-
AbstractRange
public AbstractRange()
-
-
Method Details
-
intersection
- Specified by:
intersectionin interfaceRange<V extends Comparable<?>>- Parameters:
range- theRangeto build the intersection with.- Returns:
- the intersection of this
Rangewith the givenRangethat is aRangewith the highestminimumand the lowestmaximumof the two ranges to intersect. In case theRanges the intersection of
-
with
-
create
-
equals
-
hashCode
public int hashCode() -
toString
-