/[classpath]/classpath/java/nio/channels/spi/AbstractSelector.java
ViewVC logotype

Diff of /classpath/java/nio/channels/spi/AbstractSelector.java

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

revision 1.10.2.1 by gnu_andrew, Tue Aug 2 20:12:24 2005 UTC revision 1.10.2.2 by tromey, Tue Sep 27 16:56:22 2005 UTC
# Line 1  Line 1 
1  /* AbstractSelector.java --  /* AbstractSelector.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 49  public abstract class AbstractSelector e Line 49  public abstract class AbstractSelector e
49  {  {
50    private boolean closed;    private boolean closed;
51    private SelectorProvider provider;    private SelectorProvider provider;
52    private HashSet cancelledKeys;    private HashSet<SelectionKey> cancelledKeys;
53    
54    /**    /**
55     * Initializes the slector.     * Initializes the slector.
# Line 59  public abstract class AbstractSelector e Line 59  public abstract class AbstractSelector e
59    protected AbstractSelector(SelectorProvider provider)    protected AbstractSelector(SelectorProvider provider)
60    {    {
61      this.provider = provider;      this.provider = provider;
62      this.cancelledKeys = new HashSet();      this.cancelledKeys = new HashSet<SelectionKey>();
63    }    }
64    
65    /**    /**
# Line 115  public abstract class AbstractSelector e Line 115  public abstract class AbstractSelector e
115     *     *
116     * @return the cancelled keys set     * @return the cancelled keys set
117     */     */
118    protected final Set cancelledKeys()    protected final Set<SelectionKey> cancelledKeys()
119    {    {
120      if (! isOpen())      if (! isOpen())
121        throw new ClosedSelectorException();        throw new ClosedSelectorException();

Legend:
Removed from v.1.10.2.1  
changed lines
  Added in v.1.10.2.2

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