messagepassing.java

来自「a simple java mutlti thread concurrency 」· Java 代码 · 共 26 行

JAVA
26
字号
package Synchronization;public interface MessagePassing {   public abstract void send(Object m)      throws NotImplementedMethodException;   public abstract void send(int m)      throws NotImplementedMethodException ;   public abstract void send(double m)      throws NotImplementedMethodException;   public abstract Object receive()      throws NotImplementedMethodException;   public abstract int receiveInt() throws ClassCastException,      NotImplementedMethodException;   public abstract double receiveDouble() throws ClassCastException,      NotImplementedMethodException;   public abstract void close()      throws NotImplementedMethodException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?