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:
parent
14f209afac
commit
7b1d81201d
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue