Class AbstractInputDevice<T extends DeviceEvent>

java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.spi.AbstractInputDevice<T>
All Implemented Interfaces:
DeviceInterface, Closeable, AutoCloseable
Direct Known Subclasses:
MCP23xxxDigitalInputDevice, MCP23xxxDigitalInputOutputDevice, NativeGpioInputDevice, NativeGpioInputOutputDevice, PiconZero.PiconZeroAnalogInputDevice, SysFsAnalogInputDevice, SysFsDigitalInputDevice, SysFsDigitalInputOutputDevice

public abstract class AbstractInputDevice<T extends DeviceEvent>
extends AbstractDevice
  • Constructor Details

  • Method Details

    • accept

      public void accept​(T event)
    • generatesEvents

      public boolean generatesEvents()
    • setListener

      public final void setListener​(DeviceEventConsumer<T> listener)
    • removeListener

      public final void removeListener()
    • enableListener

      protected void enableListener()
    • disableListener

      protected void disableListener()