Package gov.usgs.earthquake.distribution
Class URLNotification
java.lang.Object
gov.usgs.earthquake.distribution.DefaultNotification
gov.usgs.earthquake.distribution.URLNotification
- All Implemented Interfaces:
Notification
- Direct Known Subclasses:
JsonNotification
A URLNotification represents a product that is available via a URL.
-
Constructor Summary
ConstructorsConstructorDescriptionURLNotification
(ProductId id, Date expirationDate, URL productURL) Construct a URLNotification. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(Notification that) A comparison method to see if two notifications are equal.Methods inherited from class gov.usgs.earthquake.distribution.DefaultNotification
getExpirationDate, getProductId
-
Constructor Details
-
URLNotification
Construct a URLNotification.- Parameters:
id
- which product is available.expirationDate
- how long the product is available.productURL
- where product is available.
-
-
Method Details
-
getProductURL
- Returns:
- Location where this product can be downloaded.
-
equals
A comparison method to see if two notifications are equal.- Specified by:
equals
in interfaceNotification
- Overrides:
equals
in classDefaultNotification
- Parameters:
that
- Notification- Returns:
- boolean
-