Class BraceStyleParameter
- java.lang.Object
-
- com.google.common.flogger.parameter.Parameter
-
- com.google.common.flogger.parameter.BraceStyleParameter
-
public class BraceStyleParameter extends Parameter
A parameter implementation to mimic the formatting of brace style placeholders (ie, "{n}").
-
-
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 BraceStyleParameterof(int index)Returns aParameterrepresenting a plain "brace style" placeholder "{n}".-
Methods inherited from class com.google.common.flogger.parameter.Parameter
accept, getFormatOptions, getIndex
-
-
-
-
Method Detail
-
of
public static BraceStyleParameter of(int index)
Returns aParameterrepresenting a plain "brace style" placeholder "{n}". Note that a cached value may be returned.- Parameters:
index- the index of the argument to be processed.- Returns:
- the immutable, thread safe parameter instance.
-
accept
protected void accept(ParameterVisitor visitor, Object value)
-
-