FormatType

public enum FormatType

The general formatting type of any one of the predefined FormatChar instances.

See also

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

Original Java code of Google Flogger

Entries

Link copied to clipboard

General formatting that can be applied to any type.

Link copied to clipboard

Formatting that can be applied to any boolean type.

Link copied to clipboard

Formatting that can be applied to Character or any integral type that can be losslessly converted to an int and for which isValidCodePoint returns true.

Link copied to clipboard

Formatting that can be applied to any integral Number type. Logging backends must support Byte, Short, Integer, Long and BigInteger but may also support additional numeric types directly. A logging backend that encounters an unknown numeric type should fall back to using toString().

Link copied to clipboard

Formatting that can be applied to any Number type. Logging backends must support all the integral types as well as Float, Double and BigDecimal, but may also support additional numeric types directly. A logging backend that encounters an unknown numeric type should fall back to using toString().

Properties

Link copied to clipboard
public final boolean isNumeric

Functions

Link copied to clipboard
public abstract boolean canFormat(Object arg)
Link copied to clipboard
public boolean isNumeric()
True if this format type requires a Number instance (or one of the corresponding fundamental types) as an argument.
Link copied to clipboard
public static FormatType valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<FormatType> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.