Class LongInterval
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.util.LongInterval
-
-
Constructor Summary
Constructors Constructor Description LongInterval(long min, boolean minIncluded, long max, boolean maxIncluded)
LongInterval(long min, long max)
LongInterval(String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMax()
Get the maximal value of the interval.long
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
-
LongInterval
public LongInterval(long min, long max)
-
LongInterval
public LongInterval(long min, boolean minIncluded, long max, boolean maxIncluded)
-
LongInterval
public LongInterval(String s) throws AozanException
- Throws:
AozanException
-
-
Method Detail
-
getMin
public long 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 long 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
-
-