|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.util.ObjectUtil
public class ObjectUtil
Certain generic utility operations on objects.
Constructor Summary | |
---|---|
ObjectUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectUtil()
Method Detail |
---|
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 object
public 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
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |