Mercurial > projects > dwt-addons
comparison dwtx/jface/internal/text/revisions/Hunk.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 51e6e63f930e |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
137:25170b5a8951 | 138:b6bad70d540a |
---|---|
84 * @see java.lang.Object#equals(java.lang.Object) | 84 * @see java.lang.Object#equals(java.lang.Object) |
85 */ | 85 */ |
86 public bool equals(Object obj) { | 86 public bool equals(Object obj) { |
87 if (obj is this) | 87 if (obj is this) |
88 return true; | 88 return true; |
89 if (obj instanceof Hunk) { | 89 if ( cast(Hunk)obj ) { |
90 Hunk other= cast(Hunk) obj; | 90 Hunk other= cast(Hunk) obj; |
91 return other.line is this.line && other.delta is this.delta && other.changed is this.changed; | 91 return other.line is this.line && other.delta is this.delta && other.changed is this.changed; |
92 } | 92 } |
93 return false; | 93 return false; |
94 } | 94 } |