mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug #189623: adding "equals"
This commit is contained in:
parent
7847ef0e81
commit
9c8adc16a3
1 changed files with 12 additions and 0 deletions
|
@ -96,6 +96,18 @@ public final class MBSCustomPageData
|
||||||
return this.id.compareTo(other.id);
|
return this.id.compareTo(other.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see java.lang.Object#equals(java.lang.Object)
|
||||||
|
*/
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (obj == null || !(obj instanceof ToolchainData))
|
||||||
|
return false;
|
||||||
|
if (this == obj) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return this.id.equals(((ToolchainData)obj).id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue