|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.DoubleExtensions
public class DoubleExtensions
This is an extension library for floating point numbers, e.g. double or Double.
| Constructor Summary | |
|---|---|
DoubleExtensions()
|
|
| Method Summary | |
|---|---|
static double |
operator_divide(double a,
double b)
The binary divide operator. |
static double |
operator_divide(java.lang.Double a,
java.lang.Number b)
The binary divide operator. |
static boolean |
operator_equals(double a,
double b)
The binary equals operator. |
static boolean |
operator_greaterEqualsThan(double a,
double b)
The binary greater than or equals operator. |
static boolean |
operator_greaterThan(double a,
double b)
The binary greater than operator. |
static boolean |
operator_lessEqualsThan(double a,
double b)
The binary less than or equals operator. |
static boolean |
operator_lessThan(double a,
double b)
The binary less than operator. |
static double |
operator_minus(double a)
The unary minus operator. |
static double |
operator_minus(java.lang.Double a)
The unary minus operator. |
static double |
operator_minus(double a,
double b)
The binary minus operator. |
static double |
operator_minus(java.lang.Double a,
java.lang.Number b)
The binary minus operator. |
static double |
operator_multiply(double a,
double b)
The binary times operator. |
static double |
operator_multiply(java.lang.Double a,
java.lang.Number b)
The binary times operator. |
static boolean |
operator_notEquals(double a,
double b)
The binary not equals operator. |
static double |
operator_plus(double a,
double b)
The binary plus operator. |
static double |
operator_plus(java.lang.Double a,
java.lang.Number b)
The binary plus operator. |
static double |
operator_power(double a,
double b)
The power operator. |
static double |
operator_power(java.lang.Double a,
java.lang.Number b)
The power operator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleExtensions()
| Method Detail |
|---|
public static double operator_minus(double a)
minus operator. This is the equivalent to the unary java - operator.
a - a double.
-apublic static double operator_minus(java.lang.Double a)
minus operator. This is the equivalent to the unary java - operator.
a - a double. May not be null.
-a
java.lang.NullPointerException - if a is null.
public static double operator_plus(double a,
double b)
plus operator. This is the equivalent to the java + operator.
a - a double.b - a double.
a+b
public static double operator_plus(java.lang.Double a,
java.lang.Number b)
plus operator. This is the equivalent to the java + operator.
a - a double. May not be null.b - a number. May not be null.
a+b
java.lang.NullPointerException - if a or b is null.
public static double operator_minus(double a,
double b)
minus operator. This is the equivalent to the java - operator.
a - a double.b - a double.
a-b
public static double operator_minus(java.lang.Double a,
java.lang.Number b)
minus operator. This is the equivalent to the java - operator.
a - a double. May not be null.b - a number. May not be null.
a-b
java.lang.NullPointerException - if a or b is null.
public static double operator_power(double a,
double b)
power operator.
a - a double.b - a double.
a ** b
public static double operator_power(java.lang.Double a,
java.lang.Number b)
power operator.
a - a double. May not be null.b - a number. May not be null.
a ** b
java.lang.NullPointerException - if a or b is null.
public static double operator_multiply(double a,
double b)
times operator. This is the equivalent to the java * operator.
a - a double.b - a double.
a*b
public static double operator_multiply(java.lang.Double a,
java.lang.Number b)
times operator. This is the equivalent to the java * operator.
a - a double. May not be null.b - a number. May not be null.
a*b
java.lang.NullPointerException - if a or b is null.
public static double operator_divide(double a,
double b)
divide operator. This is the equivalent to the java / operator. That is, the
result will be the integral result of the division, e.g. operator_divide(1, 2) yields 0
.
a - a double.b - a double.
a/b
public static double operator_divide(java.lang.Double a,
java.lang.Number b)
divide operator. This is the equivalent to the java / operator. That is, the
result will be the integral result of the division, e.g. operator_divide(1, 2) yields 0
.
a - a double. May not be null.b - a number. May not be null.
a/b
java.lang.NullPointerException - if a or b is null.
public static boolean operator_equals(double a,
double b)
equals operator. This is the equivalent to the java == operator.
a - a double.b - a double.
a==b
public static boolean operator_notEquals(double a,
double b)
not equals operator. This is the equivalent to the java != operator.
a - a double.b - a double.
a!=b
public static boolean operator_lessThan(double a,
double b)
less than operator. This is the equivalent to the java < operator.
a - a double.b - a double.
a<b
public static boolean operator_lessEqualsThan(double a,
double b)
less than or equals operator. This is the equivalent to the java <= operator.
a - a double.b - a double.
a<=b
public static boolean operator_greaterThan(double a,
double b)
greater than operator. This is the equivalent to the java > operator.
a - a double.b - a double.
a>b
public static boolean operator_greaterEqualsThan(double a,
double b)
greater than or equals operator. This is the equivalent to the java >= operator.
a - a double.b - a double.
a>=b
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||