/[classpath]/classpath/java/awt/DisplayMode.java
ViewVC logotype

Diff of /classpath/java/awt/DisplayMode.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Thu Nov 7 10:07:57 2002 UTC revision 1.4 by tromey, Sat Jan 11 00:45:42 2003 UTC
# Line 1  Line 1 
1  /* DisplayMode.java -- a description of display mode configurations  /* DisplayMode.java -- a description of display mode configurations
2     Copyright (C) 2002 Free Software Foundation, Inc.     Copyright (C) 2002, 2003 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 140  public final class DisplayMode Line 140  public final class DisplayMode
140     * Test for equality. This returns true for two modes with identical     * Test for equality. This returns true for two modes with identical
141     * parameters.     * parameters.
142     *     *
143     * @param o the object to compare to     * @param dm The display mode to compare to
144       *
145     * @return true if it is equal     * @return true if it is equal
146     */     */
147    public boolean equals(Object o)    public boolean equals (DisplayMode dm)
148    {    {
149      if (! (o instanceof DisplayMode))      return (width == dm.width
150        return false;              && height == dm.height
151      DisplayMode m = (DisplayMode) o;              && bitDepth == dm.bitDepth
152      return width == m.width && height == m.height && bitDepth == m.bitDepth              && refreshRate == dm.refreshRate);
       && refreshRate == m.refreshRate;  
153    }    }
154    
155    /**    /**

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26