YearMonth
insteadpublic class YearMonth extends Object implements Serializable, Comparable<YearMonth>
Modifier and Type | Class and Description |
---|---|
static class |
YearMonth.YearMonthParseException
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
int |
month
Deprecated.
|
int |
year
Deprecated.
|
Constructor and Description |
---|
YearMonth(int y,
int m)
Deprecated.
|
YearMonth(java.time.YearMonth x)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
YearMonth |
addMonths(int offset)
Deprecated.
|
static int |
calculateMonthSpanCount(YearMonth startIncl,
YearMonth endIncl)
Deprecated.
From Jan to Feb is 2
|
int |
compareTo(YearMonth other)
Deprecated.
|
boolean |
equals(Object other)
Deprecated.
|
YearMonth |
getNextMonth()
Deprecated.
|
YearMonth |
getPreviousMonth()
Deprecated.
|
boolean |
gt(YearMonth other)
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
le(YearMonth other)
Deprecated.
|
boolean |
lt(YearMonth other)
Deprecated.
|
static YearMonth |
max(YearMonth a,
YearMonth b)
Deprecated.
|
static YearMonth |
min(YearMonth a,
YearMonth b)
Deprecated.
|
static YearMonth |
newForYYYYMM(String str)
Deprecated.
|
static YearMonth |
now()
Deprecated.
|
static YearMonth[] |
rangeDownwardsIncl(YearMonth maxIncl,
YearMonth minIncl)
Deprecated.
|
Date |
toDate()
Deprecated.
|
java.time.YearMonth |
toJavaTimeYearMonth()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
toYYYYMM()
Deprecated.
|
public YearMonth(int y, int m)
m
- 1 is januarypublic YearMonth(java.time.YearMonth x)
public String toYYYYMM()
public java.time.YearMonth toJavaTimeYearMonth()
public static YearMonth newForYYYYMM(String str) throws YearMonth.YearMonthParseException
str
- "YYYY-MMxx" form where xx can be anythingYearMonth.YearMonthParseException
public boolean lt(YearMonth other)
public boolean le(YearMonth other)
public boolean gt(YearMonth other)
public static YearMonth now()
public YearMonth getPreviousMonth()
public YearMonth getNextMonth()
public YearMonth addMonths(int offset)
public static YearMonth[] rangeDownwardsIncl(YearMonth maxIncl, YearMonth minIncl)
public static int calculateMonthSpanCount(YearMonth startIncl, YearMonth endIncl)
public Date toDate()
public int compareTo(YearMonth other)
compareTo
in interface Comparable<YearMonth>