public class DefaultDoubleRange extends AbstractComparableRange<Double> implements DoubleRange
endExclusive, startExclusive| Constructor and Description |
|---|
DefaultDoubleRange(double first,
double second,
boolean firstExclusive,
boolean secondExclusive) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double value) |
boolean |
contains(Double value) |
Double |
end() |
double |
endValue() |
ComparableRange<Double> |
intersect(ComparableRange<Double> other) |
Double |
lower() |
Double |
lowerExclusive() |
Double |
lowerInclusive() |
double |
lowerValue() |
double |
lowerValueExclusive() |
double |
lowerValueInclusive() |
double |
size() |
Double |
start() |
double |
startValue() |
double[] |
steps(double step) |
double[] |
times(int step) |
Double |
upper() |
Double |
upperExclusive() |
Double |
upperInclusive() |
double |
upperValue() |
double |
upperValueExclusive() |
double |
upperValueInclusive() |
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrder, toStringequals, hashCode, isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitreversedOrderisEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusiveisEndExclusive, isEndInclusive, isStartExclusive, isStartInclusivepublic DefaultDoubleRange(double first,
double second,
boolean firstExclusive,
boolean secondExclusive)
public double startValue()
startValue in interface DoubleRangepublic double endValue()
endValue in interface DoubleRangepublic double lowerValueInclusive()
lowerValueInclusive in interface DoubleRangepublic double lowerValueExclusive()
lowerValueExclusive in interface DoubleRangepublic double lowerValue()
lowerValue in interface DoubleRangepublic double upperValue()
upperValue in interface DoubleRangepublic double upperValueInclusive()
upperValueInclusive in interface DoubleRangepublic double upperValueExclusive()
upperValueExclusive in interface DoubleRangepublic double size()
size in interface DoubleRangepublic boolean contains(double value)
contains in interface DoubleRangepublic double[] times(int step)
public double[] steps(double step)
public Double lowerInclusive()
lowerInclusive in interface ComparableRange<Double>public Double lowerExclusive()
lowerExclusive in interface ComparableRange<Double>public Double lower()
lower in interface ComparableRange<Double>public Double upper()
upper in interface ComparableRange<Double>public Double upperInclusive()
upperInclusive in interface ComparableRange<Double>public Double upperExclusive()
upperExclusive in interface ComparableRange<Double>public boolean contains(Double value)
contains in interface ComparableRange<Double>public ComparableRange<Double> intersect(ComparableRange<Double> other)
intersect in interface ComparableRange<Double>Copyright © 2021 vpc open source initiative. All rights reserved.