Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/Point.d @ 26:f589fc20a5f9
work on linux phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 21 Mar 2009 11:22:55 +0100 |
parents | f713da8bc051 |
children |
comparison
equal
deleted
inserted
replaced
25:f713da8bc051 | 26:f589fc20a5f9 |
---|---|
15 import java.lang.all; | 15 import java.lang.all; |
16 | 16 |
17 | 17 |
18 public import org.eclipse.swt.internal.SerializableCompatibility; | 18 public import org.eclipse.swt.internal.SerializableCompatibility; |
19 | 19 |
20 import tango.text.convert.Format; | |
21 | 20 |
22 /** | 21 /** |
23 * Instances of this class represent places on the (x, y) | 22 * Instances of this class represent places on the (x, y) |
24 * coordinate plane. | 23 * coordinate plane. |
25 * <p> | 24 * <p> |
77 * @param object the object to compare with this object | 76 * @param object the object to compare with this object |
78 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 77 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
79 * | 78 * |
80 * @see #hashCode() | 79 * @see #hashCode() |
81 */ | 80 */ |
82 public override int opEquals (Object object) { | 81 public override equals_t opEquals (Object object) { |
83 if (object is this) return true; | 82 if (object is this) return true; |
84 if ( auto p = cast(Point)object ){ | 83 if ( auto p = cast(Point)object ){ |
85 return (p.x is this.x) && (p.y is this.y); | 84 return (p.x is this.x) && (p.y is this.y); |
86 } | 85 } |
87 return false; | 86 return false; |