Class DoubleRange
Defines a range of type Double.
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class DoubleRange extends NumericRange<Double>
Constructors
DoubleRange()
Initializes a new instance of DoubleRange.
Declaration
public DoubleRange()
DoubleRange(DoubleRange range)
Initializes a new instance of DoubleRange.
Declaration
public DoubleRange(DoubleRange range)
Parameters
| Type | Name | Description |
|---|---|---|
| range | The DoubleRange instance to initialize new range with. |
DoubleRange(Double min, Double max)
Initializes a new instance of DoubleRange.
Declaration
public DoubleRange(Double min, Double max)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | min | The min value to initialize range with. |
| Double | max | The max value to initialize range with. |
Methods
clone()
Creates and returns a copy of this object
Declaration
public IRange<Double> clone()
Returns
| Type | Description |
|---|---|
| IRange<Double> |
Overrides
Exceptions
| Type | Condition |
|---|---|
| CloneNotSupportedException |
getIsZero()
Gets whether the range is Zero, where max equals min
Declaration
public boolean getIsZero()
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
getValueType()
Declaration
public final Class<Double> getValueType()
Returns
| Type | Description |
|---|---|
| Class<Double> |
growBy(double minFraction, double maxFraction)
Declaration
public void growBy(double minFraction, double maxFraction)
Parameters
| Type | Name | Description |
|---|---|---|
| double | minFraction | |
| double | maxFraction |