java.lang.Object
io.jenetics.util.DoubleRange
- All Implemented Interfaces:
Serializable
Double range class.
- Since:
- 3.2
- Version:
- 6.0
- See Also:
- Implementation Note:
- This class is immutable and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()doublemax()Return the maximum value of the double range.doublemin()Return the minimum value of the double range.static DoubleRangeof(double min, double max) Create a newDoubleRangeobject with the givenminandmaxvalues.toString()
-
Method Details
-
min
Return the minimum value of the double range.- Returns:
- the minimum value of the double range
-
max
Return the maximum value of the double range.- Returns:
- the maximum value of the double range
-
of
Create a newDoubleRangeobject with the givenminandmaxvalues.- Parameters:
min- the lower bound of the double rangemax- the upper bound of the double range- Returns:
- a new
DoubleRangeobject - Throws:
IllegalArgumentException- ifmin > max
-
hashCode
-
equals
-
toString
-