|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
byte b)
The binary divide operator. |
static double |
operator_divide(double a,
char b)
The binary divide operator. |
static double |
operator_divide(double a,
double b)
The binary divide operator. |
static double |
operator_divide(double a,
float b)
The binary divide operator. |
static double |
operator_divide(double a,
int b)
The binary divide operator. |
static double |
operator_divide(double a,
long b)
The binary divide operator. |
static double |
operator_divide(java.lang.Double a,
java.lang.Number b)
The binary divide operator. |
static double |
operator_divide(double a,
short b)
The binary divide operator. |
static boolean |
operator_equals(double a,
byte b)
The binary equals operator. |
static boolean |
operator_equals(double a,
char b)
The binary equals operator. |
static boolean |
operator_equals(double a,
double b)
The binary equals operator. |
static boolean |
operator_equals(double a,
float b)
The binary equals operator. |
static boolean |
operator_equals(double a,
int b)
The binary equals operator. |
static boolean |
operator_equals(double a,
long b)
The binary equals operator. |
static boolean |
operator_equals(double a,
short b)
The binary equals operator. |
static boolean |
operator_greaterEqualsThan(double a,
byte b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
char b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
double b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
float b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
int b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
long b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(double a,
short b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterThan(double a,
byte b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
char b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
double b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
float b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
int b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
long b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(double a,
short b)
The binary greaterThan operator. |
static boolean |
operator_lessEqualsThan(double a,
byte b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
char b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
double b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
float b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
int b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
long b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(double a,
short b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessThan(double a,
byte b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
char b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
double b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
float b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
int b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
long b)
The binary lessThan operator. |
static boolean |
operator_lessThan(double a,
short b)
The binary lessThan 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,
byte b)
The binary minus operator. |
static double |
operator_minus(double a,
char b)
The binary minus operator. |
static double |
operator_minus(double a,
double b)
The binary minus operator. |
static double |
operator_minus(double a,
float b)
The binary minus operator. |
static double |
operator_minus(double a,
int b)
The binary minus operator. |
static double |
operator_minus(double a,
long b)
The binary minus operator. |
static double |
operator_minus(java.lang.Double a,
java.lang.Number b)
The binary minus operator. |
static double |
operator_minus(double a,
short b)
The binary minus operator. |
static double |
operator_modulo(double a,
byte b)
The binary modulo operator. |
static double |
operator_modulo(double a,
char b)
The binary modulo operator. |
static double |
operator_modulo(double a,
double b)
The binary modulo operator. |
static double |
operator_modulo(double a,
float b)
The binary modulo operator. |
static double |
operator_modulo(double a,
int b)
The binary modulo operator. |
static double |
operator_modulo(double a,
long b)
The binary modulo operator. |
static double |
operator_modulo(double a,
short b)
The binary modulo operator. |
static double |
operator_multiply(double a,
byte b)
The binary multiply operator. |
static double |
operator_multiply(double a,
char b)
The binary multiply operator. |
static double |
operator_multiply(double a,
double b)
The binary multiply operator. |
static double |
operator_multiply(double a,
float b)
The binary multiply operator. |
static double |
operator_multiply(double a,
int b)
The binary multiply operator. |
static double |
operator_multiply(double a,
long b)
The binary multiply operator. |
static double |
operator_multiply(java.lang.Double a,
java.lang.Number b)
The binary times operator. |
static double |
operator_multiply(double a,
short b)
The binary multiply operator. |
static boolean |
operator_notEquals(double a,
byte b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
char b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
double b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
float b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
int b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
long b)
The binary notEquals operator. |
static boolean |
operator_notEquals(double a,
short b)
The binary notEquals operator. |
static double |
operator_plus(double a,
byte b)
The binary plus operator. |
static double |
operator_plus(double a,
char b)
The binary plus operator. |
static double |
operator_plus(double a,
double b)
The binary plus operator. |
static double |
operator_plus(double a,
float b)
The binary plus operator. |
static double |
operator_plus(double a,
int b)
The binary plus operator. |
static double |
operator_plus(double a,
long b)
The binary plus operator. |
static double |
operator_plus(java.lang.Double a,
java.lang.Number b)
The binary plus operator. |
static double |
operator_plus(double a,
short b)
The binary plus operator. |
static double |
operator_power(double a,
byte b)
The binary power operator. |
static double |
operator_power(double a,
char b)
The binary power operator. |
static double |
operator_power(double a,
double b)
The binary power operator. |
static double |
operator_power(double a,
float b)
The binary power operator. |
static double |
operator_power(double a,
int b)
The binary power operator. |
static double |
operator_power(double a,
long b)
The binary power operator. |
static double |
operator_power(java.lang.Double a,
java.lang.Number b)
The power operator. |
static double |
operator_power(double a,
short b)
The binary 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(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(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(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(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(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(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 double operator_minus(double a)
minus
operator. This is the equivalent to the Java's -
function.
a
- a double.
-a
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_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_multiply(double a, double b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a double.
a*b
public static double operator_divide(double a, double b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a double.
a/b
public static double operator_modulo(double a, double b)
modulo
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)
lessThan
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)
lessEqualsThan
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)
greaterThan
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)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a double.
a>=b
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)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a double.
a!=b
public static double operator_power(double a, double b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a double.
Math.pow(a, b)
public static double operator_plus(double a, float b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- a float.
a+b
public static double operator_minus(double a, float b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- a float.
a-b
public static double operator_multiply(double a, float b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a float.
a*b
public static double operator_divide(double a, float b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a float.
a/b
public static double operator_modulo(double a, float b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- a float.
a%b
public static boolean operator_lessThan(double a, float b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- a float.
a<b
public static boolean operator_lessEqualsThan(double a, float b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- a float.
a<=b
public static boolean operator_greaterThan(double a, float b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- a float.
a>b
public static boolean operator_greaterEqualsThan(double a, float b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a float.
a>=b
public static boolean operator_equals(double a, float b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- a float.
a==b
public static boolean operator_notEquals(double a, float b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a float.
a!=b
public static double operator_power(double a, float b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a float.
Math.pow(a, b)
public static double operator_plus(double a, long b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- a long.
a+b
public static double operator_minus(double a, long b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- a long.
a-b
public static double operator_multiply(double a, long b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a long.
a*b
public static double operator_divide(double a, long b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a long.
a/b
public static double operator_modulo(double a, long b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- a long.
a%b
public static boolean operator_lessThan(double a, long b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- a long.
a<b
public static boolean operator_lessEqualsThan(double a, long b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- a long.
a<=b
public static boolean operator_greaterThan(double a, long b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- a long.
a>b
public static boolean operator_greaterEqualsThan(double a, long b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a long.
a>=b
public static boolean operator_equals(double a, long b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- a long.
a==b
public static boolean operator_notEquals(double a, long b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a long.
a!=b
public static double operator_power(double a, long b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a long.
Math.pow(a, b)
public static double operator_plus(double a, int b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- an integer.
a+b
public static double operator_minus(double a, int b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- an integer.
a-b
public static double operator_multiply(double a, int b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- an integer.
a*b
public static double operator_divide(double a, int b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- an integer.
a/b
public static double operator_modulo(double a, int b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- an integer.
a%b
public static boolean operator_lessThan(double a, int b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- an integer.
a<b
public static boolean operator_lessEqualsThan(double a, int b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- an integer.
a<=b
public static boolean operator_greaterThan(double a, int b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- an integer.
a>b
public static boolean operator_greaterEqualsThan(double a, int b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- an integer.
a>=b
public static boolean operator_equals(double a, int b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- an integer.
a==b
public static boolean operator_notEquals(double a, int b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- an integer.
a!=b
public static double operator_power(double a, int b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- an integer.
Math.pow(a, b)
public static double operator_plus(double a, char b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- a character.
a+b
public static double operator_minus(double a, char b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- a character.
a-b
public static double operator_multiply(double a, char b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a character.
a*b
public static double operator_divide(double a, char b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a character.
a/b
public static double operator_modulo(double a, char b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- a character.
a%b
public static boolean operator_lessThan(double a, char b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- a character.
a<b
public static boolean operator_lessEqualsThan(double a, char b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- a character.
a<=b
public static boolean operator_greaterThan(double a, char b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- a character.
a>b
public static boolean operator_greaterEqualsThan(double a, char b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a character.
a>=b
public static boolean operator_equals(double a, char b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- a character.
a==b
public static boolean operator_notEquals(double a, char b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a character.
a!=b
public static double operator_power(double a, char b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a character.
Math.pow(a, b)
public static double operator_plus(double a, short b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- a short.
a+b
public static double operator_minus(double a, short b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- a short.
a-b
public static double operator_multiply(double a, short b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a short.
a*b
public static double operator_divide(double a, short b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a short.
a/b
public static double operator_modulo(double a, short b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- a short.
a%b
public static boolean operator_lessThan(double a, short b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- a short.
a<b
public static boolean operator_lessEqualsThan(double a, short b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- a short.
a<=b
public static boolean operator_greaterThan(double a, short b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- a short.
a>b
public static boolean operator_greaterEqualsThan(double a, short b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a short.
a>=b
public static boolean operator_equals(double a, short b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- a short.
a==b
public static boolean operator_notEquals(double a, short b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a short.
a!=b
public static double operator_power(double a, short b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a short.
Math.pow(a, b)
public static double operator_plus(double a, byte b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a double.b
- a byte.
a+b
public static double operator_minus(double a, byte b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a double.b
- a byte.
a-b
public static double operator_multiply(double a, byte b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a double.b
- a byte.
a*b
public static double operator_divide(double a, byte b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a double.b
- a byte.
a/b
public static double operator_modulo(double a, byte b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a double.b
- a byte.
a%b
public static boolean operator_lessThan(double a, byte b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a double.b
- a byte.
a<b
public static boolean operator_lessEqualsThan(double a, byte b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a double.b
- a byte.
a<=b
public static boolean operator_greaterThan(double a, byte b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a double.b
- a byte.
a>b
public static boolean operator_greaterEqualsThan(double a, byte b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a double.b
- a byte.
a>=b
public static boolean operator_equals(double a, byte b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a double.b
- a byte.
a==b
public static boolean operator_notEquals(double a, byte b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a double.b
- a byte.
a!=b
public static double operator_power(double a, byte b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a double.b
- a byte.
Math.pow(a, b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |