Scala Library: scala.runtime.StringFormat
scala.runtime.StringFormat
A wrapper class that adds a formatted
operation to any value
- Annotations
- @ deprecated
- Deprecated
- (Since version 2.11.0) Use Predef.StringFormat
- Source
Value Members From scala.Any
final def ##(): Int
Equivalent to x.hashCode
except for boxed numeric types and null
. For
numerics, it returns a hash value which is consistent with value equality: if
two value type instances compare as true, then ## will produce the same hash
value for each of them. For null
returns a hashcode where null.hashCode
throws a NullPointerException
.
- returns
- a hash value consistent with ==
- Definition Classes
- Any
(defined at scala.Any###)
Instance Constructors From scala.runtime.StringFormat
new StringFormat(self: Any)
(defined at scala.runtime.StringFormat)
Value Members From scala.runtime.StringFormat
def formatted(fmtstr: String): String
Returns string formatted according to given format
string. Format strings are
as for String.format
(@see java.lang.String.format).
- Annotations
- @ inline () (defined at scala.runtime.StringFormat)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.