LocalDate
instead.public class YearMonthDay extends Object implements Serializable, Comparable<YearMonthDay>
Modifier and Type | Field and Description |
---|---|
int |
day
Deprecated.
|
int |
month
Deprecated.
|
int |
year
Deprecated.
|
Constructor and Description |
---|
YearMonthDay(int year,
int month,
int day)
Deprecated.
|
YearMonthDay(java.time.LocalDate date)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
calculateYearsDifference(YearMonthDay other)
Deprecated.
|
int |
compareTo(YearMonthDay other)
Deprecated.
|
boolean |
equals(Object other)
Deprecated.
|
String |
format(String formatString)
Deprecated.
|
Date |
getMidnightUtcAtEnd()
Deprecated.
|
Date |
getMidnightUtcAtStart()
Deprecated.
|
YearMonthDay |
getNext()
Deprecated.
|
YearMonthDay |
getPrevious()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isAfter(YearMonthDay other)
Deprecated.
|
boolean |
isAfterOrEqual(YearMonthDay other)
Deprecated.
|
boolean |
isBefore(YearMonthDay other)
Deprecated.
|
boolean |
isBeforeOrEqual(YearMonthDay other)
Deprecated.
|
static YearMonthDay |
max(YearMonthDay a,
YearMonthDay b)
Deprecated.
|
static YearMonthDay |
min(YearMonthDay a,
YearMonthDay b)
Deprecated.
|
static YearMonthDay |
newForYYYYMMDD(String date)
Deprecated.
|
static YearMonthDay |
newMinusInfinity()
Deprecated.
|
static YearMonthDay |
newTodayUtc()
Deprecated.
|
YearMonthDay |
subtractDays(int dayCount)
Deprecated.
|
java.time.LocalDate |
toLocalDate()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
toYYYYMMDD()
Deprecated.
|
public int year
public int month
public int day
public YearMonthDay(int year, int month, int day)
public YearMonthDay(java.time.LocalDate date)
public static YearMonthDay newForYYYYMMDD(String date)
date
- "YYYY-MM-DD", not nullpublic String toYYYYMMDD()
public static YearMonthDay newTodayUtc()
public Date getMidnightUtcAtStart()
public YearMonthDay getPrevious()
public YearMonthDay getNext()
public Date getMidnightUtcAtEnd()
public int compareTo(YearMonthDay other)
compareTo
in interface Comparable<YearMonthDay>
public YearMonthDay subtractDays(int dayCount)
public static YearMonthDay newMinusInfinity()
public static YearMonthDay max(YearMonthDay a, YearMonthDay b)
public static YearMonthDay min(YearMonthDay a, YearMonthDay b)
public int calculateYearsDifference(YearMonthDay other)
public boolean isBefore(YearMonthDay other)
public boolean isAfter(YearMonthDay other)
public boolean isBeforeOrEqual(YearMonthDay other)
public boolean isAfterOrEqual(YearMonthDay other)
public String format(String formatString)
formatString
- Can contain "yyyy" "MM" "dd"public java.time.LocalDate toLocalDate()