Class LocalDateValueHandler
java.lang.Object
org.tquadrat.foundation.config.cli.CmdLineValueHandler<LocalDate>
org.tquadrat.foundation.config.cli.TimeValueHandler<LocalDate>
org.tquadrat.foundation.config.cli.LocalDateValueHandler
@ClassVersion(sourceVersion="$Id: LocalDateValueHandler.java 896 2021-04-05 20:25:33Z tquadrat $")
@API(status=INTERNAL,
     since="0.0.1")
public final class LocalDateValueHandler
extends TimeValueHandler<LocalDate>
The implementation of
  
TimeValueHandler
  for java.time.LocalDate.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: LocalDateValueHandler.java 896 2021-04-05 20:25:33Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
- 
    
         UML Diagram for "org.tquadrat.foundation.config.cli.LocalDateValueHandler" 
- 
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 SummaryConstructorsConstructorDescriptionLocalDateValueHandler(BiConsumer<String, LocalDate> valueSetter) Creates a newLocalDateValueHandlerinstance.LocalDateValueHandler(CLIDefinition context, BiConsumer<String, LocalDate> valueSetter) Creates a newLocalDateValueHandlerinstance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final Optional<TimeDateStringConverter<LocalDate>> Creates a non-standard string converter that uses the provided format.protected final LocalDategetNow()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- 
LocalDateValueHandlerCreates a newLocalDateValueHandlerinstance.- Parameters:
- context- The CLI definition that provides the context for this value handler.
- valueSetter- The- Consumerthat places the translated value to the property.
 
- 
LocalDateValueHandlerCreates a newLocalDateValueHandlerinstance.- 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<LocalDate>
- Returns:
- An instance o
      Optionalthat holds theStringConverter.
 
- 
getNowGet the current time.- Specified by:
- getNowin class- TimeValueHandler<LocalDate>
- Returns:
- The current time.
 
 
- 
