|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.parameterdatabase.types.DoubleRange
This class represents a continuous range of double values which includes the given endpoints.
Nested Class Summary | |
protected class |
DoubleRange.RangeFormatException
This exception will be thrown if the String describing the range is invalid for any reason. |
Constructor Summary | |
DoubleRange(double minimum,
double maximum)
Create a DoubleRange which represents a continuous range of double values from the given minimum to the given maximum. |
|
DoubleRange(String range)
This creates a DoubleRange from a String with the following format: [min,max], where min and max are valid double strings. |
Method Summary | |
double |
forceInRange(double d)
Return the double value d clipped to the range represented by this object. |
double |
getMaximum()
Return the maximum end of the range. |
double |
getMinimum()
Return the minimum end of the range. |
boolean |
inRange(double d)
Check to see if the given double is in the range represented by this object. |
String |
toString()
Writes out the range in the format [min,max]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DoubleRange(double minimum, double maximum)
public DoubleRange(String range)
Method Detail |
public String toString()
public double getMinimum()
public double getMaximum()
public boolean inRange(double d)
public double forceInRange(double d)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |