|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.xtext.xbase.lib.LongExtensions
public class LongExtensions
This is an extension library for Long
numbers.
Constructor Summary | |
---|---|
LongExtensions()
|
Method Summary | |
---|---|
static long |
bitwiseAnd(long a,
long b)
The bitwise and operation. |
static long |
bitwiseNot(long a)
The bitwise complement operation. |
static long |
bitwiseOr(long a,
long b)
The bitwise inclusive or operation. |
static long |
bitwiseXor(long a,
long b)
The bitwise exclusive or operation. |
static long |
operator_divide(long a,
byte b)
The binary divide operator. |
static long |
operator_divide(long a,
char b)
The binary divide operator. |
static double |
operator_divide(long a,
double b)
The binary divide operator. |
static float |
operator_divide(long a,
float b)
The binary divide operator. |
static long |
operator_divide(long a,
int b)
The binary divide operator. |
static long |
operator_divide(long a,
long b)
The binary divide operator. |
static long |
operator_divide(long a,
short b)
The binary divide operator. |
static long |
operator_doubleGreaterThan(long a,
int distance)
The binary signed right sift operator. |
static long |
operator_doubleLessThan(long a,
int distance)
The binary signed left shift operator. |
static boolean |
operator_equals(long a,
byte b)
The binary equals operator. |
static boolean |
operator_equals(long a,
char b)
The binary equals operator. |
static boolean |
operator_equals(long a,
double b)
The binary equals operator. |
static boolean |
operator_equals(long a,
float b)
The binary equals operator. |
static boolean |
operator_equals(long a,
int b)
The binary equals operator. |
static boolean |
operator_equals(long a,
long b)
The binary equals operator. |
static boolean |
operator_equals(long a,
short b)
The binary equals operator. |
static boolean |
operator_greaterEqualsThan(long a,
byte b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
char b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
double b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
float b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
int b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
long b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterEqualsThan(long a,
short b)
The binary greaterEqualsThan operator. |
static boolean |
operator_greaterThan(long a,
byte b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
char b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
double b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
float b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
int b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
long b)
The binary greaterThan operator. |
static boolean |
operator_greaterThan(long a,
short b)
The binary greaterThan operator. |
static boolean |
operator_lessEqualsThan(long a,
byte b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
char b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
double b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
float b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
int b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
long b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessEqualsThan(long a,
short b)
The binary lessEqualsThan operator. |
static boolean |
operator_lessThan(long a,
byte b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
char b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
double b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
float b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
int b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
long b)
The binary lessThan operator. |
static boolean |
operator_lessThan(long a,
short b)
The binary lessThan operator. |
static long |
operator_minus(long a)
The unary minus operator. |
static long |
operator_minus(long a,
byte b)
The binary minus operator. |
static long |
operator_minus(long a,
char b)
The binary minus operator. |
static double |
operator_minus(long a,
double b)
The binary minus operator. |
static float |
operator_minus(long a,
float b)
The binary minus operator. |
static long |
operator_minus(long a,
int b)
The binary minus operator. |
static long |
operator_minus(long a,
long b)
The binary minus operator. |
static long |
operator_minus(long a,
short b)
The binary minus operator. |
static long |
operator_modulo(long a,
byte b)
The binary modulo operator. |
static long |
operator_modulo(long a,
char b)
The binary modulo operator. |
static double |
operator_modulo(long a,
double b)
The binary modulo operator. |
static float |
operator_modulo(long a,
float b)
The binary modulo operator. |
static long |
operator_modulo(long a,
int b)
The binary modulo operator. |
static long |
operator_modulo(long a,
long b)
The binary modulo operator. |
static long |
operator_modulo(long a,
short b)
The binary modulo operator. |
static long |
operator_multiply(long a,
byte b)
The binary multiply operator. |
static long |
operator_multiply(long a,
char b)
The binary multiply operator. |
static double |
operator_multiply(long a,
double b)
The binary multiply operator. |
static float |
operator_multiply(long a,
float b)
The binary multiply operator. |
static long |
operator_multiply(long a,
int b)
The binary multiply operator. |
static long |
operator_multiply(long a,
long b)
The binary multiply operator. |
static long |
operator_multiply(long a,
short b)
The binary multiply operator. |
static boolean |
operator_notEquals(long a,
byte b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
char b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
double b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
float b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
int b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
long b)
The binary notEquals operator. |
static boolean |
operator_notEquals(long a,
short b)
The binary notEquals operator. |
static long |
operator_plus(long a,
byte b)
The binary plus operator. |
static long |
operator_plus(long a,
char b)
The binary plus operator. |
static double |
operator_plus(long a,
double b)
The binary plus operator. |
static float |
operator_plus(long a,
float b)
The binary plus operator. |
static long |
operator_plus(long a,
int b)
The binary plus operator. |
static long |
operator_plus(long a,
long b)
The binary plus operator. |
static long |
operator_plus(long a,
short b)
The binary plus operator. |
static double |
operator_power(long a,
byte b)
The binary power operator. |
static double |
operator_power(long a,
char b)
The binary power operator. |
static double |
operator_power(long a,
double b)
The binary power operator. |
static double |
operator_power(long a,
float b)
The binary power operator. |
static double |
operator_power(long a,
int b)
The binary power operator. |
static double |
operator_power(long a,
long b)
The binary power operator. |
static double |
operator_power(long a,
short b)
The binary power operator. |
static long |
operator_tripleGreaterThan(long a,
int distance)
The binary unsigned right shift operator. |
static long |
shiftLeft(long a,
int distance)
Deprecated. use operator_doubleLessThan(long, int) instead. |
static long |
shiftRight(long a,
int distance)
Deprecated. use operator_doubleGreaterThan(long, int) instead. |
static long |
shiftRightUnsigned(long a,
int distance)
Deprecated. use operator_tripleGreaterThan(long, int) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongExtensions()
Method Detail |
---|
public static long bitwiseOr(long a, long b)
or
operation. This is the equivalent to the java |
operator.
a
- a long.b
- a long
a|b
public static long bitwiseXor(long a, long b)
or
operation. This is the equivalent to the java ^
operator.
a
- a long.b
- a long.
a^b
public static long bitwiseAnd(long a, long b)
and
operation. This is the equivalent to the java &
operator.
a
- a long.b
- a long.
a&b
public static long bitwiseNot(long a)
~
operator.
a
- a long.
a
.@Deprecated public static long shiftLeft(long a, int distance)
operator_doubleLessThan(long, int)
instead.
signed left shift
operator. This is the equivalent to the java <<
operator.
Fills in a zero as the least significant bit.
a
- a long.distance
- the number of times to shift.
a<<distance
public static long operator_doubleLessThan(long a, int distance)
signed left shift
operator. This is the equivalent to the java <<
operator.
Fills in a zero as the least significant bit.
a
- a long.distance
- the number of times to shift.
a<<distance
@Deprecated public static long shiftRight(long a, int distance)
operator_doubleGreaterThan(long, int)
instead.
signed right sift
operator. This is the equivalent to the java >>
operator.
Shifts in the value of the sign bit as the leftmost bit, thus preserving the sign of the initial value.
a
- a long.distance
- the number of times to shift.
a>>distance
public static long operator_doubleGreaterThan(long a, int distance)
signed right sift
operator. This is the equivalent to the java >>
operator.
Shifts in the value of the sign bit as the leftmost bit, thus preserving the sign of the initial value.
a
- a long.distance
- the number of times to shift.
a>>distance
@Deprecated public static long shiftRightUnsigned(long a, int distance)
operator_tripleGreaterThan(long, int)
instead.
unsigned right shift
operator. This is the equivalent to the java >>>
operator.
Shifts in zeros into as leftmost bits, thus always yielding a positive integer.
a
- a long.distance
- the number of times to shift.
a>>>distance
public static long operator_tripleGreaterThan(long a, int distance)
unsigned right shift
operator. This is the equivalent to the java >>>
operator.
Shifts in zeros into as leftmost bits, thus always yielding a positive integer.
a
- a long.distance
- the number of times to shift.
a>>>distance
public static long operator_minus(long a)
minus
operator. This is the equivalent to the Java's -
function.
a
- a long.
-a
public static double operator_plus(long a, double b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a double.
a+b
public static double operator_minus(long a, double b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a double.
a-b
public static double operator_multiply(long a, double b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a double.
a*b
public static double operator_divide(long a, double b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a double.
a/b
public static double operator_modulo(long a, double b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a double.
a%b
public static boolean operator_lessThan(long a, double b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a double.
a<b
public static boolean operator_lessEqualsThan(long a, double b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a double.
a<=b
public static boolean operator_greaterThan(long a, double b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a double.
a>b
public static boolean operator_greaterEqualsThan(long a, double b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a double.
a>=b
public static boolean operator_equals(long a, double b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a double.
a==b
public static boolean operator_notEquals(long a, double b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a double.
a!=b
public static double operator_power(long a, double b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a double.
Math.pow(a, b)
public static float operator_plus(long a, float b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a float.
a+b
public static float operator_minus(long a, float b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a float.
a-b
public static float operator_multiply(long a, float b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a float.
a*b
public static float operator_divide(long a, float b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a float.
a/b
public static float operator_modulo(long a, float b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a float.
a%b
public static boolean operator_lessThan(long a, float b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a float.
a<b
public static boolean operator_lessEqualsThan(long a, float b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a float.
a<=b
public static boolean operator_greaterThan(long a, float b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a float.
a>b
public static boolean operator_greaterEqualsThan(long a, float b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a float.
a>=b
public static boolean operator_equals(long a, float b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a float.
a==b
public static boolean operator_notEquals(long a, float b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a float.
a!=b
public static double operator_power(long a, float b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a float.
Math.pow(a, b)
public static long operator_plus(long a, long b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a long.
a+b
public static long operator_minus(long a, long b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a long.
a-b
public static long operator_multiply(long a, long b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a long.
a*b
public static long operator_divide(long a, long b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a long.
a/b
public static long operator_modulo(long a, long b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a long.
a%b
public static boolean operator_lessThan(long a, long b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a long.
a<b
public static boolean operator_lessEqualsThan(long a, long b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a long.
a<=b
public static boolean operator_greaterThan(long a, long b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a long.
a>b
public static boolean operator_greaterEqualsThan(long a, long b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a long.
a>=b
public static boolean operator_equals(long a, long b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a long.
a==b
public static boolean operator_notEquals(long a, long b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a long.
a!=b
public static double operator_power(long a, long b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a long.
Math.pow(a, b)
public static long operator_plus(long a, int b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- an integer.
a+b
public static long operator_minus(long a, int b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- an integer.
a-b
public static long operator_multiply(long a, int b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- an integer.
a*b
public static long operator_divide(long a, int b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- an integer.
a/b
public static long operator_modulo(long a, int b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- an integer.
a%b
public static boolean operator_lessThan(long a, int b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- an integer.
a<b
public static boolean operator_lessEqualsThan(long a, int b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- an integer.
a<=b
public static boolean operator_greaterThan(long a, int b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- an integer.
a>b
public static boolean operator_greaterEqualsThan(long a, int b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- an integer.
a>=b
public static boolean operator_equals(long a, int b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- an integer.
a==b
public static boolean operator_notEquals(long a, int b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- an integer.
a!=b
public static double operator_power(long a, int b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- an integer.
Math.pow(a, b)
public static long operator_plus(long a, char b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a character.
a+b
public static long operator_minus(long a, char b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a character.
a-b
public static long operator_multiply(long a, char b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a character.
a*b
public static long operator_divide(long a, char b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a character.
a/b
public static long operator_modulo(long a, char b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a character.
a%b
public static boolean operator_lessThan(long a, char b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a character.
a<b
public static boolean operator_lessEqualsThan(long a, char b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a character.
a<=b
public static boolean operator_greaterThan(long a, char b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a character.
a>b
public static boolean operator_greaterEqualsThan(long a, char b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a character.
a>=b
public static boolean operator_equals(long a, char b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a character.
a==b
public static boolean operator_notEquals(long a, char b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a character.
a!=b
public static double operator_power(long a, char b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a character.
Math.pow(a, b)
public static long operator_plus(long a, short b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a short.
a+b
public static long operator_minus(long a, short b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a short.
a-b
public static long operator_multiply(long a, short b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a short.
a*b
public static long operator_divide(long a, short b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a short.
a/b
public static long operator_modulo(long a, short b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a short.
a%b
public static boolean operator_lessThan(long a, short b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a short.
a<b
public static boolean operator_lessEqualsThan(long a, short b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a short.
a<=b
public static boolean operator_greaterThan(long a, short b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a short.
a>b
public static boolean operator_greaterEqualsThan(long a, short b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a short.
a>=b
public static boolean operator_equals(long a, short b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a short.
a==b
public static boolean operator_notEquals(long a, short b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a short.
a!=b
public static double operator_power(long a, short b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a short.
Math.pow(a, b)
public static long operator_plus(long a, byte b)
plus
operator. This is the equivalent to the Java +
operator.
a
- a long.b
- a byte.
a+b
public static long operator_minus(long a, byte b)
minus
operator. This is the equivalent to the Java -
operator.
a
- a long.b
- a byte.
a-b
public static long operator_multiply(long a, byte b)
multiply
operator. This is the equivalent to the Java *
operator.
a
- a long.b
- a byte.
a*b
public static long operator_divide(long a, byte b)
divide
operator. This is the equivalent to the Java /
operator.
a
- a long.b
- a byte.
a/b
public static long operator_modulo(long a, byte b)
modulo
operator. This is the equivalent to the Java %
operator.
a
- a long.b
- a byte.
a%b
public static boolean operator_lessThan(long a, byte b)
lessThan
operator. This is the equivalent to the Java <
operator.
a
- a long.b
- a byte.
a<b
public static boolean operator_lessEqualsThan(long a, byte b)
lessEqualsThan
operator. This is the equivalent to the Java <=
operator.
a
- a long.b
- a byte.
a<=b
public static boolean operator_greaterThan(long a, byte b)
greaterThan
operator. This is the equivalent to the Java >
operator.
a
- a long.b
- a byte.
a>b
public static boolean operator_greaterEqualsThan(long a, byte b)
greaterEqualsThan
operator. This is the equivalent to the Java >=
operator.
a
- a long.b
- a byte.
a>=b
public static boolean operator_equals(long a, byte b)
equals
operator. This is the equivalent to the Java ==
operator.
a
- a long.b
- a byte.
a==b
public static boolean operator_notEquals(long a, byte b)
notEquals
operator. This is the equivalent to the Java !=
operator.
a
- a long.b
- a byte.
a!=b
public static double operator_power(long a, byte b)
power
operator. This is the equivalent to the Java's Math.pow()
function.
a
- a long.b
- a byte.
Math.pow(a, b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |