| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.common.base.Objects
public final class Objects
Provides static methods that operate on objects.
| Method Summary | ||
|---|---|---|
| static
 | deepCopy(T original)Provides a means to copy objects that do not implement Cloneable. | |
| static boolean | equals(Object o1,
       Object o2)Checks and answers if the two objects are both nullor equal. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static <T extends Serializable> T deepCopy(T original)
null, this method just returns null.
T - the type of the object to be clonedoriginal - the object to copied, may be null
public static boolean equals(Object o1,
                             Object o2)
null or equal.
 
 Objects.equals(null, null) == true
 Objects.equals("Hi", "Hi") == true
 Objects.equals("Hi", null) == false
 Objects.equals(null, "Hi") == false
 Objects.equals("Hi", "Ho") == false
 
o1 - the first object to compareo2 - the second object to compare
true if and only if
    both objects are null or equal according to
    equals invoked on the
    first object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||