Interface Notification

All Known Implementing Classes:
DefaultNotification, JsonNotification, URLNotification

public interface Notification
A Notification describes an updated product that is available.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A comparison method to see if two notifications are equal.
    How long the product is available.
    The product that is available.
  • Method Details

    • getProductId

      ProductId getProductId()
      The product that is available.
      Returns:
      ProductId
    • getExpirationDate

      Date getExpirationDate()
      How long the product is available.
      Returns:
      Date
    • equals

      boolean equals(Notification that)
      A comparison method to see if two notifications are equal.
      Parameters:
      that - Notification
      Returns:
      boolean