Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TypedRegion.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 3678e4f1a766 |
children |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
186 } | 186 } |
187 | 187 |
188 /* | 188 /* |
189 * @see java.lang.Object#equals(java.lang.Object) | 189 * @see java.lang.Object#equals(java.lang.Object) |
190 */ | 190 */ |
191 public bool equals(Object o) { | 191 public override int opEquals(Object o) { |
192 if ( cast(TypedRegion)o ) { | 192 if ( cast(TypedRegion)o ) { |
193 TypedRegion r= cast(TypedRegion) o; | 193 TypedRegion r= cast(TypedRegion) o; |
194 return super.equals(r) && ((fType is null && r.getType() is null) || fType.equals(r.getType())); | 194 return super.opEquals(r) && ((fType is null && r.getType() is null) || fType ==/+eq+/r.getType()); |
195 } | 195 } |
196 return false; | 196 return false; |
197 } | 197 } |
198 | 198 |
199 /* | 199 /* |
200 * @see java.lang.Object#hashCode() | 200 * @see java.lang.Object#hashCode() |
201 */ | 201 */ |
202 public override hash_t toHash() { | 202 public override hash_t toHash() { |
203 int type= fType is null ? 0 : fType.toHash(); | 203 int type= fType is null ? 0 : .toHash(fType); |
204 return super.toHash() | type; | 204 return super.toHash() | type; |
205 } | 205 } |
206 } | 206 } |