Package purejavacomm

Class SerialPortEvent

    • Constructor Detail

      • SerialPortEvent

        public SerialPortEvent​(SerialPort source,
                               int eventType,
                               boolean oldValue,
                               boolean newValue)
        Constructs a SerialPortEvent with the specified serial port, event type, old and new values. Application programs should not directly create SerialPortEvent objects.
        Parameters:
        source -
        eventType -
        oldValue -
        newValue -
    • Method Detail

      • getEventType

        public int getEventType()
        Returns the type of this event.
        Returns:
        The type of this event.
      • getNewValue

        public boolean getNewValue()
        Returns the new value of the state change that caused the SerialPortEvent to be propagated.
        Returns:
        The new value of the state change.
      • getOldValue

        public boolean getOldValue()
        Returns the old value of the state change that caused the SerialPortEvent to be propagated.
        Returns:
        The old value of the state change.