public class ObjectUtil
extends java.lang.Object
Constructor and Description |
---|
ObjectUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
dispose(java.lang.Object object)
Disposes of the specified object.
|
static boolean |
equal(java.lang.Object anObject,
java.lang.Object anotherObject)
Computes the equivalence of two objects, accounting for primitive numeric
values that OCL considers equal but Java does not.
|
static int |
hashCode(java.lang.Object anObject)
Computes hash of an object, accounting for the similar
hashing of primitive numeric values that OCL considers equal but Java
does not.
|
static boolean |
isPrimitive(java.lang.Object o)
Queries whether the specified object represents an OCL primitive value.
|
public static boolean equal(java.lang.Object anObject, java.lang.Object anotherObject)
null
.anObject
- an object or null
anotherObject
- another object or null
public static int hashCode(java.lang.Object anObject)
null
values.anObject
- an object or null
public static boolean isPrimitive(java.lang.Object o)
o
- an objectpublic static void dispose(java.lang.Object object)
EObject
, then it and all of its contents will have their
adapter-lists cleared.object
- an object to dispose