Class SimpleParameter
- java.lang.Object
-
- com.google.common.flogger.parameter.Parameter
-
- com.google.common.flogger.parameter.SimpleParameter
-
public final class SimpleParameter extends Parameter
A simple, single argument, parameter which can format arguments according to the rules specified byFormatChar.This class is immutable and thread safe, as per the Parameter contract.
-
-
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 SimpleParameterof(int index, FormatChar formatChar, FormatOptions options)Returns aParameterrepresenting the given formatting options of the specified formatting character.-
Methods inherited from class com.google.common.flogger.parameter.Parameter
accept, getFormatOptions, getIndex
-
-
-
-
Method Detail
-
of
public static SimpleParameter of(int index, FormatChar formatChar, FormatOptions options)
Returns aParameterrepresenting the given formatting options of the specified formatting character. Note that a cached value may be returned.- Parameters:
index- the index of the argument to be processed.formatChar- the basic formatting type.options- additional formatting options.- Returns:
- the immutable, thread safe parameter instance.
-
accept
protected void accept(ParameterVisitor visitor, Object value)
-
-