|
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 java.util.Date |
getEarliest(java.util.Collection<java.util.Date> dates)
Returns the earliest date in a collection of dates |
static java.util.Date |
getLatest(java.util.Collection<java.util.Date> dates)
Returns the latest date in a collection of dates |
static java.util.Date |
max(java.util.Date d1,
java.util.Date d2)
Returns the later of two dates or null, if one of the dates is null. |
static java.util.Date |
min(java.util.Date d1,
java.util.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 java.util.Date getLatest(java.util.Collection<java.util.Date> dates)
public static java.util.Date getEarliest(java.util.Collection<java.util.Date> dates)
public static java.util.Date min(java.util.Date d1, java.util.Date d2)
public static java.util.Date max(java.util.Date d1, java.util.Date d2)
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |