Package com.bc.ceres.binding
Class ValueRange
java.lang.Object
com.bc.ceres.binding.ValueRange
This class represents a numerical value range.
- Since:
- 0.6
- 
Constructor SummaryConstructorsConstructorDescriptionValueRange(double min, double max) ValueRange(double min, double max, boolean minIncluded, boolean maxIncluded) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontains(double v) doublegetMax()doublegetMin()booleanhasMax()booleanhasMin()booleanbooleanstatic ValueRangeparseValueRange(String text) Parses anValueRange.toString()
- 
Constructor Details- 
ValueRangepublic ValueRange(double min, double max) 
- 
ValueRangepublic ValueRange(double min, double max, boolean minIncluded, boolean maxIncluded) 
 
- 
- 
Method Details- 
getMinpublic double getMin()
- 
getMaxpublic double getMax()
- 
isMinIncludedpublic boolean isMinIncluded()
- 
isMaxIncludedpublic boolean isMaxIncluded()
- 
hasMinpublic boolean hasMin()
- 
hasMaxpublic boolean hasMax()
- 
containspublic boolean contains(double v) 
- 
parseValueRangeParses anValueRange.The syntax of a version range is: interval ::= ( '[' | '(' ) min ',' max ( ']' | ')' ) min ::= number | '*' max ::= number | '*'- Parameters:
- text- The textual representation of the value range.
- Returns:
- The value range.
- Throws:
- IllegalArgumentException- If the text has an invalid format.
 
- 
toString
 
-