Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 67-70
Link Here
|
67 |
} |
67 |
} |
68 |
return this.accessRuleSet.getViolatedRestriction(qualifiedTypeName); |
68 |
return this.accessRuleSet.getViolatedRestriction(qualifiedTypeName); |
69 |
} |
69 |
} |
|
|
70 |
|
71 |
public int getMode() { |
72 |
return SOURCE | BINARY; |
73 |
} |
74 |
public int hashCode() { |
75 |
final int prime = 31; |
76 |
int result = 1; |
77 |
result = prime * result + this.getMode(); |
78 |
result = prime * result + ((this.path == null) ? 0 : this.path.hashCode()); |
79 |
return result; |
80 |
} |
81 |
public boolean equals(Object obj) { |
82 |
if (this == obj) |
83 |
return true; |
84 |
if (obj == null) |
85 |
return false; |
86 |
if (getClass() != obj.getClass()) |
87 |
return false; |
88 |
ClasspathLocation other = (ClasspathLocation) obj; |
89 |
String localPath = this.getPath(); |
90 |
String otherPath = other.getPath(); |
91 |
if (localPath == null) { |
92 |
if (otherPath != null) |
93 |
return false; |
94 |
} else if (!localPath.equals(otherPath)) |
95 |
return false; |
96 |
if (this.getMode() != other.getMode()) |
97 |
return false; |
98 |
return true; |
99 |
} |
100 |
public String getPath() { |
101 |
return this.path; |
102 |
} |
70 |
} |
103 |
} |