public class Product
extends java.lang.Object
implements java.lang.Comparable
| Constructor and Description | 
|---|
Product(java.lang.String station,
       java.lang.String content,
       java.util.Date date)
Create a product 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(java.lang.Object o)
Compare this to o 
 | 
java.lang.String | 
getContent()
Get the Content property. 
 | 
java.util.Date | 
getDate()
Get the Date property. 
 | 
java.lang.String | 
getStation()
Get the Station property. 
 | 
void | 
setContent(java.lang.String value)
Set the Content property. 
 | 
void | 
setDate(java.util.Date value)
Set the Date property. 
 | 
void | 
setStation(java.lang.String value)
Set the Station property. 
 | 
java.lang.String | 
toString()
Get a string representation 
 | 
public Product(java.lang.String station,
               java.lang.String content,
               java.util.Date date)
station - stationcontent - contentdate - the datepublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the object to compare topublic java.lang.String toString()
toString in class java.lang.Objectpublic void setDate(java.util.Date value)
value - The new value for Datepublic java.util.Date getDate()
public void setContent(java.lang.String value)
value - The new value for Contentpublic java.lang.String getContent()
public void setStation(java.lang.String value)
value - The new value for Stationpublic java.lang.String getStation()