1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

New method

isIdentical()
This commit is contained in:
Alain Magloire 2003-03-20 16:43:16 +00:00
parent 14f209afac
commit 7b1d81201d

View file

@ -394,4 +394,12 @@ public abstract class CElement extends PlatformObject implements ICElement {
return Util.combineHashCodes(fName.hashCode(), fParent.hashCode());
}
/*
* Test to see if two objects are identical
* Subclasses should override accordingly
*/
public boolean isIdentical( CElement otherElement){
return this.equals(otherElement);
}
}