StringFormat

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

Attributes

Source
Predef.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Deprecated methods

def formatted(fmtstr: String): String

Returns string formatted according to given format string.

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.
Source
Predef.scala