comparison dwtx/jface/text/TypedRegion.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 51e6e63f930e
children 3678e4f1a766
comparison
equal deleted inserted replaced
137:25170b5a8951 138:b6bad70d540a
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 bool equals(Object o) {
192 if (o instanceof TypedRegion) { 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.equals(r) && ((fType is null && r.getType() is null) || fType.equals(r.getType()));
195 } 195 }
196 return false; 196 return false;
197 } 197 }