|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.util.ObjectUtils
public final class ObjectUtils
Constructor Summary | |
---|---|
ObjectUtils()
|
Method Summary | |
---|---|
static void |
checkArg(boolean expression,
java.lang.Object errorMessage)
Throws IAE if expression evaluates to false. |
static void |
checkNotNull(java.lang.Object reference,
java.lang.Object errorMessage)
Throws NPE if reference is null. |
static boolean |
equal(java.lang.Object a,
java.lang.Object b)
Returns true if both arguments are null or if both are not null and a.equals(b) |
static int |
hashCode(java.lang.Object... objs)
Returns a hashcode of several arguments grouped together in an array. If there is only a single argument then its hashcode will be returned if the argument is not null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectUtils()
Method Detail |
---|
public static int hashCode(java.lang.Object... objs)
objs
- one or more elements
public static boolean equal(java.lang.Object a, java.lang.Object b)
a
- an Object referenceb
- an Object reference
public static void checkNotNull(java.lang.Object reference, java.lang.Object errorMessage)
reference
- an Object referenceerrorMessage
- an additional message to be supplied to the NPE if the reference is null.public static void checkArg(boolean expression, java.lang.Object errorMessage)
expression
- any boolean expressionerrorMessage
- an additional message to be supplied to the IAE if the reference is null.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |