@Immutable public final class EqualsUtils extends Object
equals method generation| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(boolean aObj1,
boolean aObj2)
Check if two values are equal.
|
static boolean |
equals(byte aObj1,
byte aObj2)
Check if two values are equal.
|
static boolean |
equals(char aObj1,
char aObj2)
Check if two values are equal.
|
static boolean |
equals(double aObj1,
double aObj2)
Check if two double values are equal.
|
static boolean |
equals(float aObj1,
float aObj2)
Check if two float values are equal.
|
static boolean |
equals(int aObj1,
int aObj2)
Check if two values are equal.
|
static boolean |
equals(long aObj1,
long aObj2)
Check if two values are equal.
|
static boolean |
equals(Object aObj1,
Object aObj2)
Check if two values are equal.
|
static boolean |
equals(short aObj1,
short aObj2)
Check if two values are equal.
|
static boolean |
equalsIgnoreCase(String sObj1,
String sObj2)
Check if the passed strings are equals case insensitive handling
null appropriately. |
static boolean |
nullSafeEqualsIgnoreCase(String sObj1,
String sObj2)
Deprecated.
Use
equalsIgnoreCase(String,String) instead |
public static boolean equals(boolean aObj1,
boolean aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(byte aObj1,
byte aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(char aObj1,
char aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(double aObj1,
double aObj2)
aObj1 - First doubleaObj2 - Second doubletrue if they are equal, false otherwise.public static boolean equals(float aObj1,
float aObj2)
aObj1 - First floataObj2 - Second floattrue if they are equal, false otherwise.public static boolean equals(int aObj1,
int aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(long aObj1,
long aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(short aObj1,
short aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.public static boolean equals(@Nullable Object aObj1, @Nullable Object aObj2)
aObj1 - First valueaObj2 - Second valuetrue if they are equal, false otherwise.EqualsImplementationRegistry.areEqual(Object, Object)@Deprecated public static boolean nullSafeEqualsIgnoreCase(@Nullable String sObj1, @Nullable String sObj2)
equalsIgnoreCase(String,String) insteadnull appropriately.sObj1 - First object to comparesObj2 - Second object to comparetrue if they are equal case insensitive,
false otherwise.public static boolean equalsIgnoreCase(@Nullable String sObj1, @Nullable String sObj2)
null appropriately.sObj1 - First object to comparesObj2 - Second object to comparetrue if they are equal case insensitive,
false otherwise.Copyright © 2014–2015 Philip Helger. All rights reserved.