Package org.apache.calcite.runtime
Class Utilities
- java.lang.Object
-
- org.apache.calcite.runtime.Utilities
-
public class Utilities extends java.lang.Object
Utility methods called by generated code.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Utilities()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
compare(boolean v0, boolean v1)
static int
compare(byte v0, byte v1)
static int
compare(char v0, char v1)
static int
compare(double v0, double v1)
static int
compare(float v0, float v1)
static int
compare(int v0, int v1)
static int
compare(long v0, long v1)
static int
compare(short v0, short v1)
static int
compare(java.lang.Comparable v0, java.lang.Comparable v1)
static int
compare(java.util.List v0, java.util.List v1)
private static int
compare_(java.lang.Object o0, java.lang.Object o1)
static int
compareNullsFirst(java.lang.Comparable v0, java.lang.Comparable v1)
static int
compareNullsLast(java.lang.Comparable v0, java.lang.Comparable v1)
static int
compareNullsLast(java.util.List v0, java.util.List v1)
static boolean
equal(java.lang.Object o0, java.lang.Object o1)
Deprecated.UseObjects.equals(java.lang.Object, java.lang.Object)
.static int
hash(int h, boolean v)
static int
hash(int h, byte v)
static int
hash(int h, char v)
static int
hash(int h, double v)
static int
hash(int h, float v)
static int
hash(int h, int v)
static int
hash(int h, long v)
static int
hash(int h, short v)
static int
hash(int h, java.lang.Object v)
static int
hash(java.lang.Object v)
static int
hashCode(boolean v)
Deprecated.UseBoolean.hashCode(boolean)
static int
hashCode(double v)
Deprecated.UseDouble.hashCode(double)
static int
hashCode(float v)
Deprecated.UseFloat.hashCode(float)
static int
hashCode(long v)
Deprecated.UseLong.hashCode(long)
-
-
-
Method Detail
-
equal
@Deprecated public static boolean equal(java.lang.Object o0, java.lang.Object o1)
Deprecated.UseObjects.equals(java.lang.Object, java.lang.Object)
.
-
hash
public static int hash(java.lang.Object v)
-
hashCode
@Deprecated public static int hashCode(double v)
Deprecated.UseDouble.hashCode(double)
Computes the hash code of adouble
value. Equivalent toDouble
.hashCode(double)
, but that method was only introduced in JDK 1.8.- Parameters:
v
- Value- Returns:
- Hash code
-
hashCode
@Deprecated public static int hashCode(float v)
Deprecated.UseFloat.hashCode(float)
Computes the hash code of afloat
value. Equivalent toFloat
.hashCode(float)
, but that method was only introduced in JDK 1.8.- Parameters:
v
- Value- Returns:
- Hash code
-
hashCode
@Deprecated public static int hashCode(long v)
Deprecated.UseLong.hashCode(long)
Computes the hash code of along
value. Equivalent toLong
.hashCode(long)
, but that method was only introduced in JDK 1.8.- Parameters:
v
- Value- Returns:
- Hash code
-
hashCode
@Deprecated public static int hashCode(boolean v)
Deprecated.UseBoolean.hashCode(boolean)
Computes the hash code of aboolean
value. Equivalent toBoolean
.hashCode(boolean)
, but that method was only introduced in JDK 1.8.- Parameters:
v
- Value- Returns:
- Hash code
-
hash
public static int hash(int h, boolean v)
-
hash
public static int hash(int h, byte v)
-
hash
public static int hash(int h, char v)
-
hash
public static int hash(int h, short v)
-
hash
public static int hash(int h, int v)
-
hash
public static int hash(int h, long v)
-
hash
public static int hash(int h, float v)
-
hash
public static int hash(int h, double v)
-
hash
public static int hash(int h, java.lang.Object v)
-
compare
public static int compare(boolean v0, boolean v1)
-
compare
public static int compare(byte v0, byte v1)
-
compare
public static int compare(char v0, char v1)
-
compare
public static int compare(short v0, short v1)
-
compare
public static int compare(int v0, int v1)
-
compare
public static int compare(long v0, long v1)
-
compare
public static int compare(float v0, float v1)
-
compare
public static int compare(double v0, double v1)
-
compare
public static int compare(java.util.List v0, java.util.List v1)
-
compare_
private static int compare_(java.lang.Object o0, java.lang.Object o1)
-
compare
public static int compare(java.lang.Comparable v0, java.lang.Comparable v1)
-
compareNullsFirst
public static int compareNullsFirst(java.lang.Comparable v0, java.lang.Comparable v1)
-
compareNullsLast
public static int compareNullsLast(java.lang.Comparable v0, java.lang.Comparable v1)
-
compareNullsLast
public static int compareNullsLast(java.util.List v0, java.util.List v1)
-
-