/[classpath]/classpath/java/util/AbstractQueue.java
ViewVC logotype

Diff of /classpath/java/util/AbstractQueue.java

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

revision 1.1.2.1 by tromey, Sat Aug 7 20:31:55 2004 UTC revision 1.1.2.2 by tromey, Mon Aug 16 19:23:49 2004 UTC
# Line 58  public class AbstractQueue<T> extends Ab Line 58  public class AbstractQueue<T> extends Ab
58    {    {
59      if (c == this)      if (c == this)
60        throw new IllegalArgumentException();        throw new IllegalArgumentException();
61        boolean result = false;
62      for (T val : c)      for (T val : c)
63        add(val);        {
64            if (add(val))
65              result = true;
66          }
67        return result;
68    }    }
69    
70    public void clear()    public void clear()
# Line 68  public class AbstractQueue<T> extends Ab Line 73  public class AbstractQueue<T> extends Ab
73        ;        ;
74    }    }
75    
76    public t element()    public T element()
77    {    {
78      T result = peek();      T result = peek();
79      if (result == null)      if (result == null)

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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