public class ObjectUtil extends Object
Constructor and Description |
---|
ObjectUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
dispose(Object object)
Disposes of the specified object.
|
static boolean |
equal(Object anObject,
Object anotherObject)
Computes the equivalence of two objects, accounting for primitive numeric
values that OCL considers equal but Java does not.
|
static int |
hashCode(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(Object o)
Queries whether the specified object represents an OCL primitive value.
|
public static boolean equal(Object anObject, Object anotherObject)
null
.anObject
- an object or null
anotherObject
- another object or null
public static int hashCode(Object anObject)
null
values.anObject
- an object or null
public static boolean isPrimitive(Object o)
o
- an objectpublic static void dispose(Object object)
EObject
, then it and all of its contents will have their
adapter-lists cleared.object
- an object to disposeCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.