Class EnglishMonthStringFunction
- java.lang.Object
-
- com.github.grossopa.selenium.component.mui.v5.datetime.func.EnglishMonthStringFunction
-
- All Implemented Interfaces:
MonthStringFunction
public class EnglishMonthStringFunction extends Object implements MonthStringFunction
Converts the English date string to month.- Since:
- 1.8
- Author:
- Jack Yin
-
-
Constructor Summary
Constructors Constructor Description EnglishMonthStringFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnglishMonthStringFunctiongetInstance()Gets the singleton instance.StringmonthToString(java.time.Month month)Converts theMonthto month label forMuiMonthPickerto locate the month button.java.time.MonthstringToMonth(String monthString)Converts the string found from month labelStringtoString()
-
-
-
Method Detail
-
stringToMonth
public java.time.Month stringToMonth(String monthString)
Description copied from interface:MonthStringFunctionConverts the string found from month label- Specified by:
stringToMonthin interfaceMonthStringFunction- Parameters:
monthString- the month string found from month label- Returns:
- the found month
-
monthToString
public String monthToString(java.time.Month month)
Converts theMonthto month label forMuiMonthPickerto locate the month button.- Specified by:
monthToStringin interfaceMonthStringFunction- Parameters:
month- the month to convert to string- Returns:
- the converted string of the month
-
getInstance
public static EnglishMonthStringFunction getInstance()
Gets the singleton instance.- Returns:
- the singleton instance.
-
-