📄 switchcontainer.java
字号:
package net.sf.dz.daemon.onewire;import java.io.IOException;public interface SwitchContainer { /** * Get the number of channels this switch provides. * * @return number of channels. */ int getChannelCount(); /** * Write value. * * @param channel Channel to write to. * * @param value Value to write. * * @exception IOException if there was a problem talking to the device. */ void write(int channel, boolean value) throws IOException; /** * Read channel value. * * @param channel Channel to read. * * @return Value for the given channel. * * @exception IOException if there was a problem talking to the device. */ boolean read(int channel) throws IOException; /** * Reset the switch to default state (all zeros). * * @exception IOException if there was a problem talking to the device. */ void reset() throws IOException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -