|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.ObjectUtil
public final class ObjectUtil
This class provides object related utility functions.
| Method Summary | |
|---|---|
static boolean |
equals(boolean a,
boolean b)
Returns true if the two values are equal to one another. |
static boolean |
equals(char a,
char b)
Returns true if the two values are equal to one another. |
static boolean |
equals(int a,
int b)
Returns true if the two values are equal to one another. |
static boolean |
equals(long a,
long b)
Returns true if the two values are equal to one another. |
static boolean |
equals(Object a,
Object b)
Returns true if the two specified objects are equal to one another. |
static String |
toString(Object obj)
Returns the string representation of the object or null if the object is null. |
static String |
toStringOrEmpty(Object obj)
Returns the string representation of the object or an empty string if the object is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean equals(Object a,
Object b)
equals method.
a - one object to be tested for equality.b - the other object to be tested for equality.
public static boolean equals(long a,
long b)
equals method.
a - value to be tested for equality.b - the other value to be tested for equality.
public static boolean equals(int a,
int b)
equals method.
a - value to be tested for equality.b - the other value to be tested for equality.
public static boolean equals(char a,
char b)
equals method.
a - value to be tested for equality.b - the other value to be tested for equality.
public static boolean equals(boolean a,
boolean b)
equals method.
a - value to be tested for equality.b - the other value to be tested for equality.
public static String toString(Object obj)
null if the object is null.
obj - the object to be converted or null.
null if the object is null.public static String toStringOrEmpty(Object obj)
obj - the object to be converted or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||