StringFormat

scala.Predef.StringFormat
final implicit class StringFormat[A](self: A) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Deprecated methods

Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

Attributes

Deprecated
[Since version 2.12.16] Use `formatString.format(value)` instead of `value.formatted(formatString)`,\nor use the `f\"\"` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.