public class Utilities
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Utilities() |
Modifier and Type | Method and Description |
---|---|
private static int |
compare_(java.lang.Object o0,
java.lang.Object o1) |
static int |
compare(boolean v0,
boolean v1) |
static int |
compare(byte v0,
byte v1) |
static int |
compare(char v0,
char v1) |
static int |
compare(java.lang.Comparable v0,
java.lang.Comparable 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(java.util.List v0,
java.util.List v1) |
static int |
compare(long v0,
long v1) |
static int |
compare(short v0,
short v1) |
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.
Use
Objects.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,
java.lang.Object v) |
static int |
hash(int h,
short v) |
static int |
hash(java.lang.Object v) |
static int |
hashCode(boolean v)
Deprecated.
Use
Boolean.hashCode(boolean) |
static int |
hashCode(double v)
Deprecated.
Use
Double.hashCode(double) |
static int |
hashCode(float v)
Deprecated.
Use
Float.hashCode(float) |
static int |
hashCode(long v)
Deprecated.
Use
Long.hashCode(long) |
@Deprecated public static boolean equal(java.lang.Object o0, java.lang.Object o1)
Objects.equals(java.lang.Object, java.lang.Object)
.public static int hash(java.lang.Object v)
@Deprecated public static int hashCode(double v)
Double.hashCode(double)
double
value. Equivalent to
Double
.hashCode(double)
, but that method was only
introduced in JDK 1.8.v
- Value@Deprecated public static int hashCode(float v)
Float.hashCode(float)
float
value. Equivalent to
Float
.hashCode(float)
, but that method was only
introduced in JDK 1.8.v
- Value@Deprecated public static int hashCode(long v)
Long.hashCode(long)
long
value. Equivalent to
Long
.hashCode(long)
, but that method was only
introduced in JDK 1.8.v
- Value@Deprecated public static int hashCode(boolean v)
Boolean.hashCode(boolean)
boolean
value. Equivalent to
Boolean
.hashCode(boolean)
, but that method was only
introduced in JDK 1.8.v
- Valuepublic static int hash(int h, boolean v)
public static int hash(int h, byte v)
public static int hash(int h, char v)
public static int hash(int h, short v)
public static int hash(int h, int v)
public static int hash(int h, long v)
public static int hash(int h, float v)
public static int hash(int h, double v)
public static int hash(int h, java.lang.Object v)
public static int compare(boolean v0, boolean v1)
public static int compare(byte v0, byte v1)
public static int compare(char v0, char v1)
public static int compare(short v0, short v1)
public static int compare(int v0, int v1)
public static int compare(long v0, long v1)
public static int compare(float v0, float v1)
public static int compare(double v0, double v1)
public static int compare(java.util.List v0, java.util.List v1)
private static int compare_(java.lang.Object o0, java.lang.Object o1)
public static int compare(java.lang.Comparable v0, java.lang.Comparable v1)
public static int compareNullsFirst(java.lang.Comparable v0, java.lang.Comparable v1)
public static int compareNullsLast(java.lang.Comparable v0, java.lang.Comparable v1)
public static int compareNullsLast(java.util.List v0, java.util.List v1)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.