ucar.unidata.util
Class DatedObject

java.lang.Object
  extended by ucar.unidata.util.DatedObject
All Implemented Interfaces:
DatedThing

public class DatedObject
extends java.lang.Object
implements DatedThing

A utility class that implements DatedThing


Constructor Summary
DatedObject(java.util.Date date)
          Construct this object with just a date
DatedObject(java.util.Date date, java.lang.Object object)
          Construct this object with a date and an object
 
Method Summary
 boolean equals(java.lang.Object o)
          equals method
 java.util.Date getDate()
          Get the Date property.
 java.lang.Object getObject()
          Get the Object property.
 void setDate(java.util.Date value)
          Set the Date property.
 void setObject(java.lang.Object value)
          Set the Object property.
static java.util.List sort(java.util.List datedThings, boolean ascending)
          Sort the given list of DatedThing-s
 java.lang.String toString()
          to string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatedObject

public DatedObject(java.util.Date date)
Construct this object with just a date

Parameters:
date - the date

DatedObject

public DatedObject(java.util.Date date,
                   java.lang.Object object)
Construct this object with a date and an object

Parameters:
date - the date
object - The object
Method Detail

sort

public static java.util.List sort(java.util.List datedThings,
                                  boolean ascending)
Sort the given list of DatedThing-s

Parameters:
datedThings - list to sort
ascending - sort order
Returns:
sorted list

equals

public boolean equals(java.lang.Object o)
equals method

Overrides:
equals in class java.lang.Object
Parameters:
o - object to check
Returns:
equals

setDate

public void setDate(java.util.Date value)
Set the Date property.

Parameters:
value - The new value for Date

getDate

public java.util.Date getDate()
Get the Date property.

Specified by:
getDate in interface DatedThing
Returns:
The Date

setObject

public void setObject(java.lang.Object value)
Set the Object property.

Parameters:
value - The new value for Object

getObject

public java.lang.Object getObject()
Get the Object property.

Returns:
The Object

toString

public java.lang.String toString()
to string

Overrides:
toString in class java.lang.Object
Returns:
to string