|
||||||||||
| 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 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. |
| 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(Object anObject,
Object anotherObject)
null.
anObject - an object or nullanotherObject - 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 object
|
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 | |||||||||