Class ProductManager.Event

    • Constructor Detail

      • Event

        public Event​(Product product)
        Parameters:
        product - The product on which the event initially occurred.
        Throws:
        IllegalArgumentException - if source is null.
    • Method Detail

      • getProduct

        public Product getProduct()
        Retrieves a reference to the originating object, i.e. the one who fired the event.
        Returns:
        the originating object