Class Product

java.lang.Object
ucar.unidata.data.text.Product
All Implemented Interfaces:
Comparable

public class Product extends Object implements Comparable
Holds a named product
Version:
$Revision: 1.15 $
Author:
IDV development team
  • Constructor Details

    • Product

      public Product(String station, String content, Date date)
      Create a product
      Parameters:
      station - station
      content - content
      date - the date
  • Method Details

    • compareTo

      public int compareTo(Object o)
      Compare this to o
      Specified by:
      compareTo in interface Comparable
      Parameters:
      o - the object to compare to
      Returns:
      the comparison
    • toString

      public String toString()
      Get a string representation
      Overrides:
      toString in class Object
      Returns:
      a string representation
    • setDate

      public void setDate(Date value)
      Set the Date property.
      Parameters:
      value - The new value for Date
    • getDate

      public Date getDate()
      Get the Date property.
      Returns:
      The Date
    • setContent

      public void setContent(String value)
      Set the Content property.
      Parameters:
      value - The new value for Content
    • getContent

      public String getContent()
      Get the Content property.
      Returns:
      The Content
    • setStation

      public void setStation(String value)
      Set the Station property.
      Parameters:
      value - The new value for Station
    • getStation

      public String getStation()
      Get the Station property.
      Returns:
      The Station