| java.lang.Object org.jmlspecs.models.JMLDouble
Constructor Summary | |
public | JMLDouble() Initialize this object to contain zero. | public | JMLDouble(double inDouble) Initialize this object to contain the given double. | public | JMLDouble(int inInt) Initialize this object to contain an approximation to the
given integer. | public | JMLDouble(Double inDouble) Initialize this object to contain the value of the given
Double. | public | JMLDouble(String s) Initialize this object to contain the value given by the
string argument. |
Method Summary | |
public boolean | approximatelyEqualTo(JMLDouble d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public boolean | approximatelyEqualTo(Double d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public boolean | approximatelyEqualTo(double d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(double d1, double d2, double epsilon) Tell whether relative difference of the two arguments is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLDouble d1, JMLDouble d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLDouble d1, Double d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLDouble d1, double d2, double epsilon) Tell whether relative difference of this JMLDouble and the arg is
within the given epsilon. | public Object | clone() Return a clone of this object. | public int | compareTo(Object op2) Compare this to op2, returning a comparison code. | public JMLDouble | dividedBy(JMLDouble d2) Return the quotient of this divided by the given argument. | public double | doubleValue() Return the double contained in this object. | public boolean | equals(Object op2) Tell whether this object is equal to the argument. | public Double | getDouble() Return a Double containing the double contained in this object. | public boolean | greaterThan(JMLDouble d2) Tell whether this is strictly greater than the given argument. | public boolean | greaterThanOrEqualTo(JMLDouble d2) Tell whether this is greater than or equal to the given argument. | public int | hashCode() Return a hash code for this object. | public boolean | isInfinite() Tell if this object contains either positive or negative infinity. | public boolean | isNaN() Tell if this object contains NaN (not a number). | public static boolean | isZero(double d) Tell if the argument is zero (either positive or negative). | public boolean | isZero() Tell if this object contains zero (either positive or negative). | public boolean | lessThan(JMLDouble d2) Tell whether this is strictly less than the given argument. | public boolean | lessThanOrEqualTo(JMLDouble d2) Tell whether this is less than or equal to the given argument. | public JMLDouble | minus(JMLDouble d2) Return the difference between this and the given argument. | public JMLDouble | negated() Return the negation of this. | public JMLDouble | plus(JMLDouble d2) Return the sum of this and the given argument. | public JMLDouble | remainderBy(JMLDouble d2) Return the remainder of this divided by the given argument. | public JMLDouble | times(JMLDouble d2) Return the product of this and the given argument. | public String | toString() Return a string representation of this object. | public boolean | withinEpsilonOf(JMLDouble d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. | public boolean | withinEpsilonOf(Double d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. | public boolean | withinEpsilonOf(double d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(double d1, double d2, double epsilon) Tell whether absolute value of difference of the two arguments
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLDouble d1, JMLDouble d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLDouble d1, Double d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLDouble d1, double d2, double epsilon) Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon. |
JMLDouble | public JMLDouble()(Code) | | Initialize this object to contain zero.
|
JMLDouble | public JMLDouble(double inDouble)(Code) | | Initialize this object to contain the given double.
|
JMLDouble | public JMLDouble(int inInt)(Code) | | Initialize this object to contain an approximation to the
given integer.
|
JMLDouble | public JMLDouble(Double inDouble)(Code) | | Initialize this object to contain the value of the given
Double.
|
approximatelyEqualTo | public static boolean approximatelyEqualTo(double d1, double d2, double epsilon)(Code) | | Tell whether relative difference of the two arguments is
within the given epsilon.
|
clone | public Object clone()(Code) | | Return a clone of this object.
|
doubleValue | public double doubleValue()(Code) | | Return the double contained in this object.
|
equals | public boolean equals(Object op2)(Code) | | Tell whether this object is equal to the argument.
|
getDouble | public Double getDouble()(Code) | | Return a Double containing the double contained in this object.
|
greaterThan | public boolean greaterThan(JMLDouble d2)(Code) | | Tell whether this is strictly greater than the given argument.
|
greaterThanOrEqualTo | public boolean greaterThanOrEqualTo(JMLDouble d2)(Code) | | Tell whether this is greater than or equal to the given argument.
|
hashCode | public int hashCode()(Code) | | Return a hash code for this object.
|
isInfinite | public boolean isInfinite()(Code) | | Tell if this object contains either positive or negative infinity.
|
isNaN | public boolean isNaN()(Code) | | Tell if this object contains NaN (not a number).
|
isZero | public static boolean isZero(double d)(Code) | | Tell if the argument is zero (either positive or negative).
|
isZero | public boolean isZero()(Code) | | Tell if this object contains zero (either positive or negative).
|
lessThan | public boolean lessThan(JMLDouble d2)(Code) | | Tell whether this is strictly less than the given argument.
|
lessThanOrEqualTo | public boolean lessThanOrEqualTo(JMLDouble d2)(Code) | | Tell whether this is less than or equal to the given argument.
|
toString | public String toString()(Code) | | Return a string representation of this object.
|
withinEpsilonOf | public boolean withinEpsilonOf(JMLDouble d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
withinEpsilonOf | public boolean withinEpsilonOf(Double d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
withinEpsilonOf | public boolean withinEpsilonOf(double d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(double d1, double d2, double epsilon)(Code) | | Tell whether absolute value of difference of the two arguments
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLDouble d1, JMLDouble d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLDouble d1, Double d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLDouble d1, double d2, double epsilon)(Code) | | Tell whether absolute value of difference of this JMLDouble and the arg
is within the given epsilon.
|
|
|