if (! (o instanceof DisplayMode)) return false; DisplayMode m = (DisplayMode) o; return width == m.width && height == m.height && bitDepth == m.bitDepth && refreshRate == m.refreshRate;
return (width == dm.width && height == dm.height && bitDepth == dm.bitDepth && refreshRate == dm.refreshRate);
  public boolean equals(Object o)  {    if (! (o instanceof DisplayMode))      return false;    DisplayMode m = (DisplayMode) o;    return width == m.width && height == m.height && bitDepth == m.bitDepth      && refreshRate == m.refreshRate;  }