cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/APathEntry.java
equal
deleted
inserted
replaced
10 * Anton Leherbauer (Wind River Systems) |
10 * Anton Leherbauer (Wind River Systems) |
11 * IBM Corporation |
11 * IBM Corporation |
12 *******************************************************************************/ |
12 *******************************************************************************/ |
13 package org.eclipse.cdt.internal.core.model; |
13 package org.eclipse.cdt.internal.core.model; |
14 |
14 |
15 import java.util.HashSet; |
15 import java.util.*; |
16 import java.util.Set; |
|
17 |
16 |
18 import org.eclipse.core.runtime.IPath; |
17 import org.eclipse.core.runtime.IPath; |
19 import org.eclipse.core.runtime.Path; |
18 import org.eclipse.core.runtime.Path; |
20 |
19 |
21 public abstract class APathEntry extends PathEntry { |
20 public abstract class APathEntry extends PathEntry { |
78 } |
77 } |
79 return this.fullCharExclusionPatterns; |
78 return this.fullCharExclusionPatterns; |
80 } |
79 } |
81 |
80 |
82 @Override |
81 @Override |
|
82 public int hashCode() { |
|
83 final int prime = 31; |
|
84 int result = super.hashCode(); |
|
85 result = prime * result |
|
86 + ((basePath == null) ? 0 : basePath.hashCode()); |
|
87 result = prime * result + ((baseRef == null) ? 0 : baseRef.hashCode()); |
|
88 result = prime * result + Arrays.hashCode(exclusionPatterns); |
|
89 result = prime * result + Arrays.hashCode(fullCharExclusionPatterns); |
|
90 return result; |
|
91 } |
|
92 |
|
93 @Override |
83 public boolean equals(Object obj) { |
94 public boolean equals(Object obj) { |
84 if (obj instanceof APathEntry) { |
95 if (obj instanceof APathEntry) { |
85 APathEntry otherEntry = (APathEntry)obj; |
96 APathEntry otherEntry = (APathEntry)obj; |
86 if (!super.equals(otherEntry)) { |
97 if (!super.equals(otherEntry)) { |
87 return false; |
98 return false; |