cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/APathEntry.java
changeset 26 8717e2008e00
parent 0 0e6d23e2b466
child 27 57a05dd59a20
equal deleted inserted replaced
25:68aa5b0d78d4 26:8717e2008e00
    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;