public class ValueRange extends Object
Constructor and Description |
---|
ValueRange(double min,
double max) |
ValueRange(double min,
double max,
boolean minIncluded,
boolean maxIncluded) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double v) |
double |
getMax() |
double |
getMin() |
boolean |
hasMax() |
boolean |
hasMin() |
boolean |
isMaxIncluded() |
boolean |
isMinIncluded() |
static ValueRange |
parseValueRange(String text)
Parses an
ValueRange . |
String |
toString() |
public ValueRange(double min, double max)
public ValueRange(double min, double max, boolean minIncluded, boolean maxIncluded)
public double getMin()
public double getMax()
public boolean isMinIncluded()
public boolean isMaxIncluded()
public boolean hasMin()
public boolean hasMax()
public boolean contains(double v)
public static ValueRange parseValueRange(String text) throws IllegalArgumentException
ValueRange
.
The syntax of a version range is:
interval ::= ( '[' | '(' ) min ',' max ( ']' | ')' ) min ::= number | '*' max ::= number | '*'
text
- The textual representation of the value range.IllegalArgumentException
- If the text has an invalid format.Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.