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

<a href="https://github.com/google/flogger/blob/cb9e836a897d36a78309ee8badf5cad4e6a2d3d8/api/src/main/java/com/google/common/flogger/parameter/DateTimeParameter.java">

Original Java code of Google Flogger

Inherited properties

Link copied to clipboard
public final int index

Functions

Link copied to clipboard
protected void accept(ParameterVisitor visitor, Object value)
Link copied to clipboard
public String getFormat()
Returns the printf format string specified for this parameter (eg, "%d" or "%tc").
Link copied to clipboard
public static Parameter of(DateTimeFormat format, FormatOptions options, int index)
Returns a Parameter representing the given formatting options of the specified date/time formatting character.

Inherited functions

Link copied to clipboard
public final void accept(ParameterVisitor visitor, Array<Object> args)
Link copied to clipboard
protected final FormatOptions getFormatOptions()
Returns the formatting options.
Link copied to clipboard
public final int getIndex()
Returns the index of the argument to be processed by this parameter.