public final class Months
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static io.spine.util.SerializableConverter<java.time.Month,Month> |
converter()
Obtains the instance of Java Time converter.
|
static Month |
of(int month)
Creates an instance by the passed number.
|
static Month |
of(java.time.LocalDate date)
Obtains the month of the passed date.
|
static Month |
of(java.time.Month month)
Converts the passed Java Time value.
|
static Month |
parse(java.lang.String str)
Parses a month from an internal representation string.
|
static java.time.Month |
toJavaTime(Month value)
Converts the passed instance to the Java Time value.
|
static java.lang.String |
toString(Month value)
Obtains string representation of the passed month.
|
public static Month of(int month)
public static Month of(java.time.LocalDate date)
public static Month of(java.time.Month month)
public static java.time.Month toJavaTime(Month value)
public static io.spine.util.SerializableConverter<java.time.Month,Month> converter()
public static java.lang.String toString(Month value)
Returned string is an internal representation, and should not be used in the user interface.
For displaying a month, please use
java.time.Month.getDisplayName(TextStyle, Locale)
.
parse(String)
public static Month parse(java.lang.String str)
toString(Month)