|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.util.DatedObject
public class DatedObject
A utility class that implements DatedThing
Constructor Summary | |
---|---|
DatedObject()
Default ctor |
|
DatedObject(Date date)
Construct this object with just a date |
|
DatedObject(Date date,
Object object)
Construct this object with a date and an object |
Method Summary | |
---|---|
boolean |
equals(Object o)
equals method |
Date |
getDate()
Get the Date property. |
Object |
getObject()
Get the Object property. |
static List |
getObjects(List datedObjects)
A utility method that takes a list of DatedObjects-s and returns a list of the objects |
static List |
select(Date startDate,
Date endDate,
List datedThings)
Select and return the DatedThings taht have dates between the two given dates. |
void |
setDate(Date value)
Set the Date property. |
void |
setObject(Object value)
Set the Object property. |
static List |
sort(List datedThings,
boolean ascending)
Sort the given list of DatedThing-s |
String |
toString()
to string |
static List |
unwrap(List datedThings)
A utility method that takes a list of DatedThing-s and returns a list of Date-s |
static List |
wrap(List dates)
A utility method that takes a list of dates and returns a list of DatedObjects |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatedObject()
public DatedObject(Date date)
date
- the datepublic DatedObject(Date date, Object object)
date
- the dateobject
- The objectMethod Detail |
---|
public static List select(Date startDate, Date endDate, List datedThings)
startDate
- Start dateendDate
- End datedatedThings
- DatedThing-s to look at
public static List wrap(List dates)
dates
- List of dates to wrap
public static List unwrap(List datedThings)
datedThings
- List of dates to unwrap
public static List getObjects(List datedObjects)
datedObjects
- List of objects
public static List sort(List datedThings, boolean ascending)
datedThings
- list to sortascending
- sort order
public boolean equals(Object o)
equals
in class Object
o
- object to check
public void setDate(Date value)
value
- The new value for Datepublic Date getDate()
getDate
in interface DatedThing
public void setObject(Object value)
value
- The new value for Objectpublic Object getObject()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |