public class DoubleRange extends java.lang.Object implements java.lang.Comparable<DoubleRange>
Constructor and Description |
---|
DoubleRange() |
DoubleRange(java.lang.Double low,
java.lang.Double high) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DoubleRange other)
first sorts according to low-bound (ascending) then according to high-bound (descending)
|
boolean |
contains(double d) |
boolean |
equals(java.lang.Object o) |
java.lang.Double |
getHigh() |
java.lang.Double |
getLow() |
void |
setHigh(java.lang.Double high) |
void |
setLow(java.lang.Double low) |
java.lang.String |
toString() |
public DoubleRange()
public DoubleRange(java.lang.Double low, java.lang.Double high)
public java.lang.Double getHigh()
public void setHigh(java.lang.Double high)
high
- The high to set.public java.lang.Double getLow()
public void setLow(java.lang.Double low)
low
- The low to set.public int compareTo(DoubleRange other)
compareTo
in interface java.lang.Comparable<DoubleRange>
public boolean contains(double d)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.