Class DefaultDoubleRange
- All Implemented Interfaces:
ComparableRange<Double>, DoubleRange, Range<Double>
-
Field Summary
Fields inherited from class AbstractRange
endExclusive, startExclusive -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDoubleRange(double first, double second, boolean firstExclusive, boolean secondExclusive) -
Method Summary
Methods inherited from class AbstractComparableRange
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrder, toStringMethods inherited from class AbstractRange
equals, hashCode, isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusiveMethods inherited from interface ComparableRange
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusiveMethods inherited from interface DoubleRange
reversedOrderMethods inherited from interface Range
isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusive
-
Constructor Details
-
DefaultDoubleRange
public DefaultDoubleRange(double first, double second, boolean firstExclusive, boolean secondExclusive)
-
-
Method Details
-
start
-
end
-
startValue
public double startValue()- Specified by:
startValuein interfaceDoubleRange
-
endValue
public double endValue()- Specified by:
endValuein interfaceDoubleRange
-
lowerValueInclusive
public double lowerValueInclusive()- Specified by:
lowerValueInclusivein interfaceDoubleRange
-
lowerValueExclusive
public double lowerValueExclusive()- Specified by:
lowerValueExclusivein interfaceDoubleRange
-
lowerValue
public double lowerValue()- Specified by:
lowerValuein interfaceDoubleRange
-
upperValue
public double upperValue()- Specified by:
upperValuein interfaceDoubleRange
-
upperValueInclusive
public double upperValueInclusive()- Specified by:
upperValueInclusivein interfaceDoubleRange
-
upperValueExclusive
public double upperValueExclusive()- Specified by:
upperValueExclusivein interfaceDoubleRange
-
size
public double size()- Specified by:
sizein interfaceDoubleRange
-
contains
public boolean contains(double value) - Specified by:
containsin interfaceDoubleRange
-
times
public double[] times(int step) -
steps
public double[] steps(double step) -
lowerInclusive
- Specified by:
lowerInclusivein interfaceComparableRange<Double>
-
lowerExclusive
- Specified by:
lowerExclusivein interfaceComparableRange<Double>
-
lower
- Specified by:
lowerin interfaceComparableRange<Double>
-
upper
- Specified by:
upperin interfaceComparableRange<Double>
-
upperInclusive
- Specified by:
upperInclusivein interfaceComparableRange<Double>
-
upperExclusive
- Specified by:
upperExclusivein interfaceComparableRange<Double>
-
contains
- Specified by:
containsin interfaceComparableRange<Double>
-
intersect
- Specified by:
intersectin interfaceComparableRange<Double>
-