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