/[classpath]/classpath/gnu/java/nio/SelectionKeyImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/SelectionKeyImpl.java

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

revision 1.4 by mkoch, Sat Nov 16 15:48:26 2002 UTC revision 1.5 by mkoch, Fri Mar 14 10:49:09 2003 UTC
# Line 44  import java.nio.channels.spi.AbstractSel Line 44  import java.nio.channels.spi.AbstractSel
44    
45  public class SelectionKeyImpl extends AbstractSelectionKey  public class SelectionKeyImpl extends AbstractSelectionKey
46  {  {
47    int fd, ops;    int fd;
48      int readyOps;
49      int interestOps;
50    SelectorImpl impl;    SelectorImpl impl;
51    SelectableChannel ch;    SelectableChannel ch;
52    
# Line 62  public class SelectionKeyImpl extends Ab Line 64  public class SelectionKeyImpl extends Ab
64    
65    public int readyOps ()    public int readyOps ()
66    {    {
67      return 0;      return readyOps;
68      }
69    
70      public SelectionKey readyOps (int ops)
71      {
72        readyOps = ops;
73        return this;
74    }    }
75    
76    public int interestOps ()    public int interestOps ()
77    {    {
78      return ops;          return interestOps;    
79    }    }
80    
81    public SelectionKey interestOps (int ops)    public SelectionKey interestOps (int ops)
82    {    {
83      this.ops = ops;      interestOps = ops;
84      return this;      return this;
85    }    }
86            

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

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