public final class YearMonths
extends java.lang.Object
YearMonth
values.Modifier and Type | Method and Description |
---|---|
static io.spine.util.SerializableConverter<java.time.YearMonth,YearMonth> |
converter()
Obtains the converter from Java Time and back.
|
static YearMonth |
of(int year,
int month)
Creates an instance with the the passed year and month.
|
static YearMonth |
of(java.time.YearMonth value)
Converts the passed Java Time value.
|
static YearMonth |
parse(java.lang.String str)
Parses a year-month from the passed string.
|
static java.time.YearMonth |
toJavaTime(YearMonth value)
Converts the passed value to Java Time.
|
static java.lang.String |
toString(YearMonth value)
Converts the passed value into a ISO-8601 year-month string, such as
"2018-06" . |
public static YearMonth of(int year, int month)
public static YearMonth of(java.time.YearMonth value)
public static java.time.YearMonth toJavaTime(YearMonth value)
public static io.spine.util.SerializableConverter<java.time.YearMonth,YearMonth> converter()
public static YearMonth parse(java.lang.String str)
toString(YearMonth)
public static java.lang.String toString(YearMonth value)
"2018-06"
.parse(String)