Class DefaultNotification

java.lang.Object
gov.usgs.earthquake.distribution.DefaultNotification
All Implemented Interfaces:
Notification
Direct Known Subclasses:
URLNotification

public class DefaultNotification extends Object implements Notification
A DefaultNotification is a implementation of the Notification interface. No location information is stored about products, and must be tracked separately.
  • Constructor Details

    • DefaultNotification

      public DefaultNotification(ProductId id, Date expirationDate)
      Construct a DefaultNotification.
      Parameters:
      id - the product that is available.
      expirationDate - how long the product is available.
  • Method Details

    • getExpirationDate

      public Date getExpirationDate()
      Description copied from interface: Notification
      How long the product is available.
      Specified by:
      getExpirationDate in interface Notification
      Returns:
      how long the product is available.
    • getProductId

      public ProductId getProductId()
      Description copied from interface: Notification
      The product that is available.
      Specified by:
      getProductId in interface Notification
      Returns:
      which product is available.
    • equals

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