143 |
* @param o the object to compare to |
* @param o the object to compare to |
144 |
* @return true if it is equal |
* @return true if it is equal |
145 |
*/ |
*/ |
146 |
public boolean equals(Object o) |
public boolean equals(DisplayMode m) |
147 |
{ |
{ |
|
if (! (o instanceof DisplayMode)) |
|
|
return false; |
|
|
DisplayMode m = (DisplayMode) o; |
|
148 |
return width == m.width && height == m.height && bitDepth == m.bitDepth |
return width == m.width && height == m.height && bitDepth == m.bitDepth |
149 |
&& refreshRate == m.refreshRate; |
&& refreshRate == m.refreshRate; |
150 |
} |
} |