Top Description Constructors Methods
org.eclipse.xtext.xbase.lib

public Class LongExtensions

extends Object
Class Inheritance
Annotations
@GwtCompatible
Imports
com.google.common.annotations.GwtCompatible

This is an extension library for Long numbers.
Author
Jan Koehnlein - Code generator
Since
2.3

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

a&b
bitwiseAnd
(long
a long.
a
,
long
a long.
b
)

The bitwise and operation.

public static long

Returns:

the bitwise complement of a.
bitwiseNot
(long
a long.
a
)

The bitwise complement operation.

public static long

Returns:

a|b
bitwiseOr
(long
a long.
a
,
long
a long
b
)

The bitwise inclusive or operation.

public static long

Returns:

a^b
bitwiseXor
(long
a long.
a
,
long
a long.
b
)

The bitwise exclusive or operation.

public static double

Returns:

a/b
operator_divide
(long
a long.
a
,
double
a double.
b
)

The binary divide operator.

public static float

Returns:

a/b
operator_divide
(long
a long.
a
,
float
a float.
b
)

The binary divide operator.

public static long

Returns:

a/b
operator_divide
(long
a long.
a
,
long
a long.
b
)

The binary divide operator.

public static long

Returns:

a/b
operator_divide
(long
a long.
a
,
int
an integer.
b
)

The binary divide operator.

public static long

Returns:

a/b
operator_divide
(long
a long.
a
,
char
a character.
b
)

The binary divide operator.

public static long

Returns:

a/b
operator_divide
(long
a long.
a
,
short
a short.
b
)

The binary divide operator.

public static long

Returns:

a/b
operator_divide
(long
a long.
a
,
byte
a byte.
b
)

The binary divide operator.

public static long

Returns:

a>>distance
operator_doubleGreaterThan
(long
a long.
a
,
int
the number of times to shift.
distance
)

The binary signed right sift operator.

public static long

Returns:

a<<distance
operator_doubleLessThan
(long
a long.
a
,
int
the number of times to shift.
distance
)

The binary signed left shift operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
double
a double.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
float
a float.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
long
a long.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
int
an integer.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
char
a character.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
short
a short.
b
)

The binary equals operator.

public static boolean

Returns:

a==b
operator_equals
(long
a long.
a
,
byte
a byte.
b
)

The binary equals operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
double
a double.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
float
a float.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
long
a long.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
int
an integer.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
char
a character.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
short
a short.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>=b
operator_greaterEqualsThan
(long
a long.
a
,
byte
a byte.
b
)

The binary greaterEqualsThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
double
a double.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
float
a float.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
long
a long.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
int
an integer.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
char
a character.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
short
a short.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a>b
operator_greaterThan
(long
a long.
a
,
byte
a byte.
b
)

The binary greaterThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
double
a double.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
float
a float.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
long
a long.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
int
an integer.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
char
a character.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
short
a short.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<=b
operator_lessEqualsThan
(long
a long.
a
,
byte
a byte.
b
)

The binary lessEqualsThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
double
a double.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
float
a float.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
long
a long.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
int
an integer.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
char
a character.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
short
a short.
b
)

The binary lessThan operator.

public static boolean

Returns:

a<b
operator_lessThan
(long
a long.
a
,
byte
a byte.
b
)

The binary lessThan operator.

public static long

Returns:

-l
operator_minus
(long
a long.
l
)

The unary minus operator.

public static double

Returns:

a-b
operator_minus
(long
a long.
a
,
double
a double.
b
)

The binary minus operator.

public static float

Returns:

a-b
operator_minus
(long
a long.
a
,
float
a float.
b
)

The binary minus operator.

public static long

Returns:

a-b
operator_minus
(long
a long.
a
,
long
a long.
b
)

The binary minus operator.

public static long

Returns:

a-b
operator_minus
(long
a long.
a
,
int
an integer.
b
)

The binary minus operator.

public static long

Returns:

a-b
operator_minus
(long
a long.
a
,
char
a character.
b
)

The binary minus operator.

public static long

Returns:

a-b
operator_minus
(long
a long.
a
,
short
a short.
b
)

The binary minus operator.

public static long

Returns:

a-b
operator_minus
(long
a long.
a
,
byte
a byte.
b
)

The binary minus operator.

public static long

Returns:

l--
operator_minusMinus
(long
a long.
l
)

The postfix decrement operator.

public static Long

Returns:

l--
operator_minusMinus
(Long
a long.
l
)

The postfix decrement operator.

public static double

Returns:

a%b
operator_modulo
(long
a long.
a
,
double
a double.
b
)

The binary modulo operator.

public static float

Returns:

a%b
operator_modulo
(long
a long.
a
,
float
a float.
b
)

The binary modulo operator.

public static long

Returns:

a%b
operator_modulo
(long
a long.
a
,
long
a long.
b
)

The binary modulo operator.

public static long

Returns:

a%b
operator_modulo
(long
a long.
a
,
int
an integer.
b
)

The binary modulo operator.

public static long

Returns:

a%b
operator_modulo
(long
a long.
a
,
char
a character.
b
)

The binary modulo operator.

public static long

Returns:

a%b
operator_modulo
(long
a long.
a
,
short
a short.
b
)

The binary modulo operator.

public static long

Returns:

a%b
operator_modulo
(long
a long.
a
,
byte
a byte.
b
)

The binary modulo operator.

public static double

Returns:

a*b
operator_multiply
(long
a long.
a
,
double
a double.
b
)

The binary multiply operator.

public static float

Returns:

a*b
operator_multiply
(long
a long.
a
,
float
a float.
b
)

The binary multiply operator.

public static long

Returns:

a*b
operator_multiply
(long
a long.
a
,
long
a long.
b
)

The binary multiply operator.

public static long

Returns:

a*b
operator_multiply
(long
a long.
a
,
int
an integer.
b
)

The binary multiply operator.

public static long

Returns:

a*b
operator_multiply
(long
a long.
a
,
char
a character.
b
)

The binary multiply operator.

public static long

Returns:

a*b
operator_multiply
(long
a long.
a
,
short
a short.
b
)

The binary multiply operator.

public static long

Returns:

a*b
operator_multiply
(long
a long.
a
,
byte
a byte.
b
)

The binary multiply operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
double
a double.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
float
a float.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
long
a long.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
int
an integer.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
char
a character.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
short
a short.
b
)

The binary notEquals operator.

public static boolean

Returns:

a!=b
operator_notEquals
(long
a long.
a
,
byte
a byte.
b
)

The binary notEquals operator.

public static double

Returns:

a+b
operator_plus
(long
a long.
a
,
double
a double.
b
)

The binary plus operator.

public static float

Returns:

a+b
operator_plus
(long
a long.
a
,
float
a float.
b
)

The binary plus operator.

public static long

Returns:

a+b
operator_plus
(long
a long.
a
,
long
a long.
b
)

The binary plus operator.

public static long

Returns:

a+b
operator_plus
(long
a long.
a
,
int
an integer.
b
)

The binary plus operator.

public static long

Returns:

a+b
operator_plus
(long
a long.
a
,
char
a character.
b
)

The binary plus operator.

public static long

Returns:

a+b
operator_plus
(long
a long.
a
,
short
a short.
b
)

The binary plus operator.

public static long

Returns:

a+b
operator_plus
(long
a long.
a
,
byte
a byte.
b
)

The binary plus operator.

public static long

Returns:

l++
operator_plusPlus
(long
a long.
l
)

The postfix increment operator.

public static Long

Returns:

l++
operator_plusPlus
(Long
a long.
l
)

The postfix increment operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
double
a double.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
float
a float.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
long
a long.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
int
an integer.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
char
a character.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
short
a short.
b
)

The binary power operator.

public static double

Returns:

Math.pow(a, b)
operator_power
(long
a long.
a
,
byte
a byte.
b
)

The binary power operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
double
a double.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
float
a float.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
long
a long.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
int
an integer.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
char
a character.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
short
a short.
b
)

The identity equals operator.

public static boolean

Returns:

a == b
operator_tripleEquals
(long
a long.
a
,
byte
a byte.
b
)

The identity equals operator.

public static long

Returns:

a>>>distance
operator_tripleGreaterThan
(long
a long.
a
,
int
the number of times to shift.
distance
)

The binary unsigned right shift operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
double
a double.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
float
a float.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
long
a long.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
int
an integer.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
char
a character.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
short
a short.
b
)

The identity not equals operator.

public static boolean

Returns:

a != b
operator_tripleNotEquals
(long
a long.
a
,
byte
a byte.
b
)

The identity not equals operator.

public static long

Returns:

a<<distance
shiftLeft
(long
a long.
a
,
int
the number of times to shift.
distance
)
Deprecated use operator_doubleLessThan(long, int) instead.

The binary signed left shift operator.

public static long

Returns:

a>>distance
shiftRight
(long
a long.
a
,
int
the number of times to shift.
distance
)
Deprecated use operator_doubleGreaterThan(long, int) instead.

The binary signed right sift operator.

public static long

Returns:

a>>>distance
shiftRightUnsigned
(long
a long.
a
,
int
the number of times to shift.
distance
)
Deprecated use operator_tripleGreaterThan(long, int) instead.

The binary unsigned right shift operator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait