Module com.pi4j

Class AnalogValueChangeEvent<ANALOG_TYPE extends Analog>

    • Constructor Detail

      • AnalogValueChangeEvent

        public AnalogValueChangeEvent​(ANALOG_TYPE source,
                                      Integer newValue,
                                      Integer oldValue)
        Default constructor
        Parameters:
        newValue - the value changed for this event instance
        source - a ANALOG_TYPE object.
        oldValue - a Integer object.
    • Method Detail

      • oldValue

        public Integer oldValue()
        The old/prior value change for this event instance
        Returns:
        a Integer object.
      • value

        public Integer value()
        The current/new value change for this event instance
        Returns:
        a Integer object.