|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.Safe
public class Safe
A class that contains utility method that make the caller not worry much about the unexpectable expected such as argument nullity or the control flow due to exceptions.
| Method Summary | |
|---|---|
static boolean |
close(Closeable closeable)
Close a closable object. |
static boolean |
equals(Object o1,
Object o2)
Return true if both objects are null or both are non null and the equals method of one object returns true when it is invoked with the other object as argument. |
| 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 o1,
Object o2)
o1 - the first objecto2 - the second object
public static boolean close(Closeable closeable)
closeable - the closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||