|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.internal.Util
public class Util
General use convenience methods: null checking, equality
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static boolean |
equal(double left,
double right)
Returns whether the arguments are equal. |
static boolean |
equal(java.lang.Object left,
java.lang.Object right)
Returns whether the arguments are equal. |
static void |
noNulls(java.util.List list)
Triggers a SWT.ERROR_NULL_ARGUMENT exception if the argument or any of its elements is null. |
static void |
noNulls(java.lang.Object[] objs)
Triggers a SWT.ERROR_NULL_ARGUMENT exception if the argument or any of its elements is null. |
static void |
notNull(java.lang.Object obj)
Triggers a SWT.ERROR_NULL_ARGUMENT exception if the argument is null. |
static void |
notNull(java.lang.Object o1,
java.lang.Object o2)
Triggers a SWT.ERROR_NULL_ARGUMENT exception if any argument is null. |
static void |
notNull(java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3)
Triggers a SWT.ERROR_NULL_ARGUMENT exception if any argument is null. |
static boolean |
sameClass(java.lang.Object left,
java.lang.Object right)
Returns whether the objects are of the same class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static boolean sameClass(java.lang.Object left,
java.lang.Object right)
left - object to testright - object to test
public static boolean equal(java.lang.Object left,
java.lang.Object right)
left - object to testright - object to test
public static boolean equal(double left,
double right)
left - double value to testright - double value to test
public static void noNulls(java.util.List list)
list - a list to test for null elements.public static void noNulls(java.lang.Object[] objs)
objs - an array to test for null elements.public static void notNull(java.lang.Object obj)
obj - the object to test for null.
public static void notNull(java.lang.Object o1,
java.lang.Object o2)
o1 - an object to test for null.o2 - an object to test for null.
public static void notNull(java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3)
o1 - an object to test for null.o2 - an object to test for null.o3 - an object to test for null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||