/[classpath]/classpath/java/nio/FloatBuffer.java
ViewVC logotype

Diff of /classpath/java/nio/FloatBuffer.java

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

revision 1.16.2.3 by gnu_andrew, Sat Jan 15 17:01:57 2005 UTC revision 1.16.2.4 by tromey, Wed Apr 20 20:30:00 2005 UTC
# Line 1  Line 1 
1  /* FloatBuffer.java --  /* FloatBuffer.java --
2     Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.     Copyright (C) 2002, 2003, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 42  package java.nio; Line 42  package java.nio;
42   * @since 1.4   * @since 1.4
43   */   */
44  public abstract class FloatBuffer extends Buffer  public abstract class FloatBuffer extends Buffer
45    implements Comparable    implements Comparable<FloatBuffer>
46  {  {
47    int array_offset;    int array_offset;
48    float[] backing_buffer;    float[] backing_buffer;
# Line 273  public abstract class FloatBuffer extend Line 273  public abstract class FloatBuffer extend
273    {    {
274      if (obj instanceof FloatBuffer)      if (obj instanceof FloatBuffer)
275        {        {
276          return compareTo (obj) == 0;          return compareTo ((FloatBuffer) obj) == 0;
277        }        }
278    
279      return false;      return false;
# Line 285  public abstract class FloatBuffer extend Line 285  public abstract class FloatBuffer extend
285     * @exception ClassCastException If obj is not an object derived from     * @exception ClassCastException If obj is not an object derived from
286     * <code>FloatBuffer</code>.     * <code>FloatBuffer</code>.
287     */     */
288    public int compareTo (Object obj)    public int compareTo (FloatBuffer other)
289    {    {
     FloatBuffer other = (FloatBuffer) obj;  
   
290      int num = Math.min(remaining(), other.remaining());      int num = Math.min(remaining(), other.remaining());
291      int pos_this = position();      int pos_this = position();
292      int pos_other = other.position();      int pos_other = other.position();

Legend:
Removed from v.1.16.2.3  
changed lines
  Added in v.1.16.2.4

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