Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.ide.util
Class ObjectUtils

java.lang.Object
  extended by oracle.ide.util.ObjectUtils

public final class ObjectUtils
extends java.lang.Object


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

ObjectUtils

public ObjectUtils()
Method Detail

hashCode

public 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.

Parameters:
objs - one or more elements
Returns:
the hashcode value of all arguments

equal

public 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)

Parameters:
a - an Object reference
b - an Object reference
Returns:
true if both arguments are null or if both are not null and a.equals(b)

checkNotNull

public static void checkNotNull(java.lang.Object reference,
                                java.lang.Object errorMessage)
Throws NPE if reference is null.

Parameters:
reference - an Object reference
errorMessage - an additional message to be supplied to the NPE if the reference is null.

checkArg

public static void checkArg(boolean expression,
                            java.lang.Object errorMessage)
Throws IAE if expression evaluates to false.

Parameters:
expression - any boolean expression
errorMessage - 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.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.