Class YearMonthValueHandler
java.lang.Object
org.tquadrat.foundation.config.cli.CmdLineValueHandler<YearMonth>
org.tquadrat.foundation.config.cli.TimeValueHandler<YearMonth>
org.tquadrat.foundation.config.cli.YearMonthValueHandler
@ClassVersion(sourceVersion="$Id: YearMonthValueHandler.java 896 2021-04-05 20:25:33Z tquadrat $")
@API(status=INTERNAL,
     since="0.0.1")
public class YearMonthValueHandler
extends TimeValueHandler<YearMonth>
The implementation of
  
TimeValueHandler
  for
  YearMonth.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: YearMonthValueHandler.java 896 2021-04-05 20:25:33Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
- 
    
         UML Diagram for "org.tquadrat.foundation.config.cli.YearMonthValueHandler" 
- 
Field SummaryFields inherited from class org.tquadrat.foundation.config.cli.TimeValueHandlerMSG_InvalidDateTimeFormat, MSGKEY_InvalidDateTimeFormat, NOWFields inherited from class org.tquadrat.foundation.config.cli.CmdLineValueHandlerDEFAULT_PROPERTY_NAME, MSG_InvalidParameter, MSGKEY_InvalidParameter
- 
Constructor SummaryConstructorsConstructorDescriptionYearMonthValueHandler(BiConsumer<String, YearMonth> valueSetter) Creates a newYearMonthValueHandlerinstance.YearMonthValueHandler(CLIDefinition context, BiConsumer<String, YearMonth> valueSetter) Creates a newYearMonthValueHandlerinstance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected Optional<TimeDateStringConverter<YearMonth>> Creates a non-standard string converter that uses the provided format.protected final YearMonthgetNow()Get the current time.Methods inherited from class org.tquadrat.foundation.config.cli.TimeValueHandlergetFormatter, getStringConverter, translateMethods inherited from class org.tquadrat.foundation.config.cli.CmdLineValueHandlergetCLIDefinition, getPropertyName, getValueSetter, parseCmdLine, setContext
- 
Constructor Details- 
YearMonthValueHandlerCreates a newYearMonthValueHandlerinstance.- Parameters:
- context- The CLI definition that provides the context for this value handler.
- valueSetter- The- Consumerthat places the translated value to the property.
 
- 
YearMonthValueHandlerCreates a newYearMonthValueHandlerinstance.- Parameters:
- valueSetter- The- Consumerthat places the translated value to the property.
 
 
- 
- 
Method Details- 
createCustomStringConverterCreates a non-standard string converter that uses the provided format.- Specified by:
- createCustomStringConverterin class- TimeValueHandler<YearMonth>
- Returns:
- An instance o
      Optionalthat holds theStringConverter.
 
- 
getNowGet the current time.- Specified by:
- getNowin class- TimeValueHandler<YearMonth>
- Returns:
- The current time.
 
 
- 
