summaryrefslogtreecommitdiff
path: root/gnu/java/nio/SelectionKeyImpl.java
diff options
context:
space:
mode:
authorRonald Veldema <rveldema@cs.vu.nl>2002-03-12 11:36:21 +0000
committerRonald Veldema <rveldema@cs.vu.nl>2002-03-12 11:36:21 +0000
commit7ff7e6abd8b17e9d9c7551e8d76503fb18325daa (patch)
tree37faea2330a248899efb9d9613d88810dad0ac98 /gnu/java/nio/SelectionKeyImpl.java
parentcc038371891900ee57b02542f26ecfa5b938f121 (diff)
downloadclasspath-7ff7e6abd8b17e9d9c7551e8d76503fb18325daa.tar.gz
* Removes dependencies on manta; javax.swing,
gnu.java.nio and java.nio now compile with jikes;
Diffstat (limited to 'gnu/java/nio/SelectionKeyImpl.java')
-rw-r--r--gnu/java/nio/SelectionKeyImpl.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/gnu/java/nio/SelectionKeyImpl.java b/gnu/java/nio/SelectionKeyImpl.java
index a05791bb8..748dd3806 100644
--- a/gnu/java/nio/SelectionKeyImpl.java
+++ b/gnu/java/nio/SelectionKeyImpl.java
@@ -1,17 +1,17 @@
-package manta.runtime;
+package gnu.java.nio;
import java.nio.channels.*;
import java.nio.channels.spi.*;
-class SelectionKeyImpl extends AbstractSelectionKey
+public class SelectionKeyImpl extends AbstractSelectionKey
{
int fd, ops;
SelectorImpl impl;
SelectableChannel ch;
- SelectionKeyImpl(SelectableChannel ch,
- SelectorImpl impl,
- int fd)
+ public SelectionKeyImpl(SelectableChannel ch,
+ SelectorImpl impl,
+ int fd)
{
this.ch = ch;
this.impl = impl;
@@ -19,29 +19,29 @@ class SelectionKeyImpl extends AbstractSelectionKey
}
- SelectableChannel channel()
+ public SelectableChannel channel()
{
return ch;
}
- int readyOps()
+ public int readyOps()
{
return 0;
}
- int interestOps()
+ public int interestOps()
{
return ops;
}
- SelectionKey interestOps(int ops)
+
+ public SelectionKey interestOps(int ops)
{
this.ops = ops;
return this;
}
-
- Selector selector()
+ public Selector selector()
{
return impl;
}