Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TextSelection.d @ 160:3678e4f1a766
toHash, toString
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 02:07:22 +0200 |
parents | 75302ef3f92f |
children | 1a5b8f8129df |
comparison
equal
deleted
inserted
replaced
159:7926b636c282 | 160:3678e4f1a766 |
---|---|
323 } | 323 } |
324 | 324 |
325 /* | 325 /* |
326 * @see java.lang.Object#hashCode() | 326 * @see java.lang.Object#hashCode() |
327 */ | 327 */ |
328 public int hashCode() { | 328 public override hash_t toHash() { |
329 int low= fDocument !is null ? fDocument.hashCode() : 0; | 329 int low= fDocument !is null ? fDocument.toHash() : 0; |
330 return (fOffset << 24) | (fLength << 16) | low; | 330 return (fOffset << 24) | (fLength << 16) | low; |
331 } | 331 } |
332 } | 332 } |
333 | 333 |