scala.util.hashing
Hashing is a trait whose instances each represent a strategy for hashing instances of a type.
Hashing
Hashing's companion object defines a default hashing strategy for all objects - it calls their ## method.
##
Note: when using a custom Hashing, make sure to use it with the Equiv such that if any two objects are equal, then their hash codes must be equal.
Equiv
2.10
Returns string formatted according to given format string.
format
Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).
String.format
Hashing
is a trait whose instances each represent a strategy for hashing instances of a type.Hashing
's companion object defines a default hashing strategy for all objects - it calls their##
method.Note: when using a custom
Hashing
, make sure to use it with theEquiv
such that if any two objects are equal, then their hash codes must be equal.2.10