Class DoubleInterval
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.util.DoubleInterval
-
-
Constructor Summary
Constructors Constructor Description DoubleInterval(double min, boolean minIncluded, double max, boolean maxIncluded)
DoubleInterval(double min, double max)
DoubleInterval(String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMax()
Get the maximal value of the interval.double
getMin()
Get the minimal value of the interval.boolean
isInInterval(Number value)
Test if a number is in an interval.boolean
isMaxIncluded()
Test if the maximal value is included in the interval.boolean
isMinIncluded()
Test if the minimal value is included in the interval.String
toString()
-
-
-
Constructor Detail
-
DoubleInterval
public DoubleInterval(double min, double max)
-
DoubleInterval
public DoubleInterval(double min, boolean minIncluded, double max, boolean maxIncluded)
-
DoubleInterval
public DoubleInterval(String s) throws AozanException
- Throws:
AozanException
-
-
Method Detail
-
getMin
public double getMin()
Get the minimal value of the interval.- Returns:
- the minimal value of the interval
-
isMinIncluded
public boolean isMinIncluded()
Test if the minimal value is included in the interval.- Returns:
- true if the minimal value is included in the interval.
-
getMax
public double getMax()
Get the maximal value of the interval.- Returns:
- the maximal value of the interval
-
isMaxIncluded
public boolean isMaxIncluded()
Test if the maximal value is included in the interval.- Returns:
- true if the maximal value is included in the interval.
-
isInInterval
public boolean isInInterval(Number value)
Description copied from interface:Interval
Test if a number is in an interval.- Specified by:
isInInterval
in interfaceInterval
- Parameters:
value
- value to test- Returns:
- true if the number is in the interval
-
-