|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.Objects
public class Objects
Defines a some simple utility methods for Objects
| Constructor Summary | |
|---|---|
Objects()
|
|
| Method Summary | ||
|---|---|---|
static boolean |
equalQuick(java.lang.Object a,
java.lang.Object b)
Perform simple object equality on the arguments without throwing an error if either argument is null |
|
static
|
getComparableComparator()
Return a Comparator which delegates to a Comparable object's compareTo() method |
|
static java.lang.String |
toString(java.lang.Object o)
Convert the provided argument to a String, return "null" of the argument is null |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Objects()
| Method Detail |
|---|
public static boolean equalQuick(java.lang.Object a,
java.lang.Object b)
null
a - an objectb - an object
true if a and b are equal, false otherwisepublic static <E extends java.lang.Comparable<E>> java.util.Comparator<E> getComparableComparator()
Comparator which delegates to a Comparable object's compareTo() method
Comparator which delegates to a Comparable object's compareTo() methodpublic static java.lang.String toString(java.lang.Object o)
String, return "null" of the argument is null
o - an object
o == null ? "null" : o.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||