Class DateTimeParameter
- java.lang.Object
-
- io.spine.logging.flogger.parameter.Parameter
-
- io.spine.logging.flogger.parameter.DateTimeParameter
-
public final class DateTimeParameter extends Parameter
A parameter for formatting date/time arguments.This class is immutable and thread safe, as per the Parameter contract.
- See Also:
- Original Java code of Google Flogger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept(ParameterVisitor visitor, Object value)StringgetFormat()Returns the printf format string specified for this parameter (eg, "%d" or "%tc").static Parameterof(DateTimeFormat format, FormatOptions options, int index)Returns aParameterrepresenting the given formatting options of the specified date/time formatting character.-
Methods inherited from class io.spine.logging.flogger.parameter.Parameter
accept, getFormatOptions, getIndex
-
-
-
-
Method Detail
-
of
public static Parameter of(DateTimeFormat format, FormatOptions options, int index)
Returns aParameterrepresenting the given formatting options of the specified date/time formatting character. Note that a cached value may be returned.- Parameters:
format- specifier for the specific date/time formatting to be applied.options- the validated formatting options.index- the argument index.- Returns:
- the immutable, thread safe parameter instance.
-
accept
protected void accept(ParameterVisitor visitor, Object value)
-
-