|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.date.DateUtils
public class DateUtils
Utility methods for working on date objects.
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static Date |
getEarliest(Collection<Date> dates)
Returns the earliest date in a collection of dates |
static Date |
getLatest(Collection<Date> dates)
Returns the latest date in a collection of dates |
static Date |
max(Date d1,
Date d2)
Returns the later of two dates or null, if one of the dates is null. |
static Date |
min(Date d1,
Date d2)
Returns the earlier of two dates, or null, if one of the dates is null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static Date getLatest(Collection<Date> dates)
public static Date getEarliest(Collection<Date> dates)
public static Date min(Date d1,
Date d2)
public static Date max(Date d1,
Date d2)
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||