public class Utilities extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Utilities() |
| Modifier and Type | Method and 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(Comparable v0,
Comparable v1) |
static int |
compare(@Nullable Comparable v0,
@Nullable Comparable v1,
Comparator comparator) |
static int |
compare(double v0,
double v1) |
static int |
compare(float v0,
float v1) |
static int |
compare(int v0,
int v1) |
static int |
compare(List v0,
List v1) |
static int |
compare(long v0,
long v1) |
static int |
compare(short v0,
short v1) |
static int |
compareNullsFirst(@Nullable Comparable v0,
@Nullable Comparable v1) |
static int |
compareNullsFirst(@Nullable Comparable v0,
@Nullable Comparable v1,
Comparator comparator) |
static int |
compareNullsLast(@Nullable Comparable v0,
@Nullable Comparable v1) |
static int |
compareNullsLast(@Nullable Comparable v0,
@Nullable Comparable v1,
Comparator comparator) |
static int |
compareNullsLast(List v0,
List v1) |
static boolean |
equal(@Nullable Object o0,
@Nullable Object o1)
Deprecated.
|
static Collator |
generateCollator(Locale locale,
int strength) |
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,
@Nullable Object v) |
static int |
hash(int h,
short v) |
static int |
hash(@Nullable Object v) |
static int |
hashCode(boolean v)
Deprecated.
|
static int |
hashCode(double v)
Deprecated.
|
static int |
hashCode(float v)
Deprecated.
|
static int |
hashCode(long v)
Deprecated.
|
static Pattern.PatternBuilder |
patternBuilder()
Creates a pattern builder.
|
@Deprecated public static boolean equal(@Nullable Object o0, @Nullable Object o1)
Objects.equals(java.lang.Object, java.lang.Object).public static int hash(@Nullable 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,
@Nullable 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(Comparable v0, Comparable v1)
public static int compareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1)
public static int compareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1)
public static int compare(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator)
public static int compareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator)
public static int compareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator)
public static Pattern.PatternBuilder patternBuilder()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.