Lines 335-341
Link Here
|
335 |
/** |
335 |
/** |
336 |
* Compares two objects for equality; |
336 |
* Compares two objects for equality; |
337 |
* for <code>PackageFragmentRoot</code>s, equality is having the |
337 |
* for <code>PackageFragmentRoot</code>s, equality is having the |
338 |
* same <code>JavaModel</code>, same resources, and occurrence count. |
338 |
* same parent, same resources, and occurrence count. |
339 |
* |
339 |
* |
340 |
*/ |
340 |
*/ |
341 |
public boolean equals(Object o) { |
341 |
public boolean equals(Object o) { |
Lines 345-351
Link Here
|
345 |
return false; |
345 |
return false; |
346 |
PackageFragmentRoot other = (PackageFragmentRoot) o; |
346 |
PackageFragmentRoot other = (PackageFragmentRoot) o; |
347 |
return this.resource.equals(other.resource) && |
347 |
return this.resource.equals(other.resource) && |
348 |
this.occurrenceCount == other.occurrenceCount; |
348 |
this.occurrenceCount == other.occurrenceCount && |
|
|
349 |
this.parent.equals(other.parent); |
349 |
} |
350 |
} |
350 |
|
351 |
|
351 |
/** |
352 |
/** |