|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gitective.core.Check
public abstract class Check
Utility methods for various generic checks such as equality.
| Constructor Summary | |
|---|---|
Check()
|
|
| Method Summary | |
|---|---|
static boolean |
allNull(Object... objects)
Check if the all given objects are null. |
static boolean |
anyNull(Object... objects)
Check if any of the given objects are null |
static boolean |
equals(Object object1,
Object object2)
Check if the two given objects are either both null or both equal according the Object.equals(Object) method of object1. |
static boolean |
equalsNonNull(Object object1,
Object object2)
Check if the two given objects are both non-null and equal according to the Object.equals(Object) method of object1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Check()
| Method Detail |
|---|
public static boolean equals(Object object1,
Object object2)
Object.equals(Object) method of object1.
object1 - object2 -
public static boolean allNull(Object... objects)
objects -
public static boolean anyNull(Object... objects)
objects -
public static boolean equalsNonNull(Object object1,
Object object2)
Object.equals(Object) method of object1.
object1 - object2 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||