Class LongExtensions


  • @GwtCompatible
    public class LongExtensions
    extends java.lang.Object
    This is an extension library for Long numbers.
    Since:
    2.3
    • Constructor Detail

      • LongExtensions

        public LongExtensions()
    • Method Detail

      • bitwiseOr

        @Pure
        public static long bitwiseOr​(long a,
                                     long b)
        The bitwise inclusive or operation. This is the equivalent to the java | operator.
        Parameters:
        a - a long.
        b - a long
        Returns:
        a|b
      • bitwiseXor

        @Pure
        public static long bitwiseXor​(long a,
                                      long b)
        The bitwise exclusive or operation. This is the equivalent to the java ^ operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a^b
      • bitwiseAnd

        @Pure
        public static long bitwiseAnd​(long a,
                                      long b)
        The bitwise and operation. This is the equivalent to the java & operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a&b
      • bitwiseNot

        @Pure
        public static long bitwiseNot​(long a)
        The bitwise complement operation. This is the equivalent to the java ~ operator.
        Parameters:
        a - a long.
        Returns:
        the bitwise complement of a.
      • shiftLeft

        @Deprecated
        @Pure
        public static long shiftLeft​(long a,
                                     int distance)
        Deprecated.
        The binary signed left shift operator. This is the equivalent to the java << operator. Fills in a zero as the least significant bit.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a<<distance
      • operator_doubleLessThan

        @Pure
        public static long operator_doubleLessThan​(long a,
                                                   int distance)
        The binary signed left shift operator. This is the equivalent to the java << operator. Fills in a zero as the least significant bit.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a<<distance
      • shiftRight

        @Deprecated
        @Pure
        public static long shiftRight​(long a,
                                      int distance)
        Deprecated.
        The binary 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.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a>>distance
      • operator_doubleGreaterThan

        @Pure
        public static long operator_doubleGreaterThan​(long a,
                                                      int distance)
        The binary 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.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a>>distance
      • shiftRightUnsigned

        @Deprecated
        @Pure
        public static long shiftRightUnsigned​(long a,
                                              int distance)
        Deprecated.
        The binary 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.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a>>>distance
      • operator_tripleGreaterThan

        @Pure
        public static long operator_tripleGreaterThan​(long a,
                                                      int distance)
        The binary 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.
        Parameters:
        a - a long.
        distance - the number of times to shift.
        Returns:
        a>>>distance
      • operator_minus

        @Pure
        public static long operator_minus​(long l)
        The unary minus operator. This is the equivalent to the Java's - function.
        Parameters:
        l - a long.
        Returns:
        -l
        Since:
        2.3
      • operator_minusMinus

        public static long operator_minusMinus​(long l)
        The postfix decrement operator. This is the equivalent to the Java's -- postfix function.
        Parameters:
        l - a long.
        Returns:
        l--
        Since:
        2.6
      • operator_minusMinus

        public static java.lang.Long operator_minusMinus​(java.lang.Long l)
        The postfix decrement operator. This is the equivalent to the Java's -- postfix function.
        Parameters:
        l - a long.
        Returns:
        l--
        Since:
        2.6
      • operator_plusPlus

        public static long operator_plusPlus​(long l)
        The postfix increment operator. This is the equivalent to the Java's ++ postfix function.
        Parameters:
        l - a long.
        Returns:
        l++
        Since:
        2.6
      • operator_plusPlus

        public static java.lang.Long operator_plusPlus​(java.lang.Long l)
        The postfix increment operator. This is the equivalent to the Java's ++ postfix function.
        Parameters:
        l - a long.
        Returns:
        l++
        Since:
        2.6
      • operator_plus

        @Pure
        public static double operator_plus​(long a,
                                           double b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static double operator_minus​(long a,
                                            double b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static double operator_multiply​(long a,
                                               double b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static double operator_divide​(long a,
                                             double b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static double operator_modulo​(long a,
                                             double b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                double b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      double b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   double b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         double b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              double b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 double b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            double b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    double b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       double b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a double.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static float operator_plus​(long a,
                                          float b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static float operator_minus​(long a,
                                           float b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static float operator_multiply​(long a,
                                              float b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static float operator_divide​(long a,
                                            float b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static float operator_modulo​(long a,
                                            float b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                float b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      float b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   float b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         float b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              float b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 float b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            float b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    float b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       float b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a float.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static long operator_plus​(long a,
                                         long b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static long operator_minus​(long a,
                                          long b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static long operator_multiply​(long a,
                                             long b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static long operator_divide​(long a,
                                           long b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static long operator_modulo​(long a,
                                           long b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                long b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      long b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   long b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         long b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              long b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 long b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            long b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    long b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       long b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a long.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static long operator_plus​(long a,
                                         int b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static long operator_minus​(long a,
                                          int b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static long operator_multiply​(long a,
                                             int b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static long operator_divide​(long a,
                                           int b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static long operator_modulo​(long a,
                                           int b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                int b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      int b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   int b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         int b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              int b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 int b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            int b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    int b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       int b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - an integer.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static long operator_plus​(long a,
                                         char b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static long operator_minus​(long a,
                                          char b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static long operator_multiply​(long a,
                                             char b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static long operator_divide​(long a,
                                           char b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static long operator_modulo​(long a,
                                           char b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                char b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      char b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   char b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         char b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              char b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 char b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            char b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    char b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       char b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a character.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static long operator_plus​(long a,
                                         short b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static long operator_minus​(long a,
                                          short b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static long operator_multiply​(long a,
                                             short b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static long operator_divide​(long a,
                                           short b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static long operator_modulo​(long a,
                                           short b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                short b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      short b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   short b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         short b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              short b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 short b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            short b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    short b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       short b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a short.
        Returns:
        a != b
        Since:
        2.4
      • operator_plus

        @Pure
        public static long operator_plus​(long a,
                                         byte b)
        The binary plus operator. This is the equivalent to the Java + operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a+b
        Since:
        2.3
      • operator_minus

        @Pure
        public static long operator_minus​(long a,
                                          byte b)
        The binary minus operator. This is the equivalent to the Java - operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a-b
        Since:
        2.3
      • operator_multiply

        @Pure
        public static long operator_multiply​(long a,
                                             byte b)
        The binary multiply operator. This is the equivalent to the Java * operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a*b
        Since:
        2.3
      • operator_divide

        @Pure
        public static long operator_divide​(long a,
                                           byte b)
        The binary divide operator. This is the equivalent to the Java / operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a/b
        Since:
        2.3
      • operator_modulo

        @Pure
        public static long operator_modulo​(long a,
                                           byte b)
        The binary modulo operator. This is the equivalent to the Java % operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a%b
        Since:
        2.3
      • operator_lessThan

        @Pure
        public static boolean operator_lessThan​(long a,
                                                byte b)
        The binary lessThan operator. This is the equivalent to the Java < operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a<b
        Since:
        2.3
      • operator_lessEqualsThan

        @Pure
        public static boolean operator_lessEqualsThan​(long a,
                                                      byte b)
        The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a<=b
        Since:
        2.3
      • operator_greaterThan

        @Pure
        public static boolean operator_greaterThan​(long a,
                                                   byte b)
        The binary greaterThan operator. This is the equivalent to the Java > operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a>b
        Since:
        2.3
      • operator_greaterEqualsThan

        @Pure
        public static boolean operator_greaterEqualsThan​(long a,
                                                         byte b)
        The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a>=b
        Since:
        2.3
      • operator_equals

        @Pure
        public static boolean operator_equals​(long a,
                                              byte b)
        The binary equals operator. This is the equivalent to the Java == operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a==b
        Since:
        2.3
      • operator_notEquals

        @Pure
        public static boolean operator_notEquals​(long a,
                                                 byte b)
        The binary notEquals operator. This is the equivalent to the Java != operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a!=b
        Since:
        2.3
      • operator_power

        @Pure
        public static double operator_power​(long a,
                                            byte b)
        The binary power operator. This is the equivalent to the Java's Math.pow() function.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        Math.pow(a, b)
        Since:
        2.3
      • operator_tripleEquals

        @Pure
        public static boolean operator_tripleEquals​(long a,
                                                    byte b)
        The identity equals operator. This is the equivalent to Java's == operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a == b
        Since:
        2.4
      • operator_tripleNotEquals

        @Pure
        public static boolean operator_tripleNotEquals​(long a,
                                                       byte b)
        The identity not equals operator. This is the equivalent to Java's != operator.
        Parameters:
        a - a long.
        b - a byte.
        Returns:
        a != b
        Since:
        2.4