@Immutable public final class EqualsUtils extends Object
equals method generation| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(boolean aObj1,
boolean aObj2) |
static boolean |
equals(byte aObj1,
byte aObj2) |
static boolean |
equals(char aObj1,
char aObj2) |
static boolean |
equals(Collection<?> aColl1,
Collection<?> aColl2)
Tells whether two passed collections are equal in terms of having the same
content.
|
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) |
static boolean |
equals(long aObj1,
long aObj2) |
static boolean |
equals(Object aObj1,
Object aObj2) |
static boolean |
equals(short aObj1,
short aObj2) |
static ITriState |
equalsTrivial(Object aThis,
Object aOther)
Performs the trivial equals checks returning
true for
identical objects and false for objects not having the same
implementation class. |
static boolean |
nullSafeEqualsIgnoreCase(String sObj1,
String sObj2) |
public static boolean equals(boolean aObj1,
boolean aObj2)
public static boolean equals(byte aObj1,
byte aObj2)
public static boolean equals(char aObj1,
char aObj2)
public static boolean equals(double aObj1,
double aObj2)
aObj1 - First doubleaObj2 - Second doubletrue if they are equal.public static boolean equals(float aObj1,
float aObj2)
aObj1 - First floataObj2 - Second floattrue if they are equal.public static boolean equals(int aObj1,
int aObj2)
public static boolean equals(long aObj1,
long aObj2)
public static boolean equals(short aObj1,
short aObj2)
public static boolean nullSafeEqualsIgnoreCase(@Nullable String sObj1, @Nullable String sObj2)
@Nonnull public static ITriState equalsTrivial(@Nonnull Object aThis, @Nullable Object aOther)
true for
identical objects and false for objects not having the same
implementation class. All other cases will result in undefined
and must be further compared in custom implementationsaThis - must not be null!aOther - may be nullnull!public static boolean equals(@Nullable Collection<?> aColl1, @Nullable Collection<?> aColl2)
aColl1 - aColl2 - Copyright © 2006–2015 phloc systems. All rights reserved.