Returns true iff x is equivalent to y.
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).
A trait for representing equivalence relations. It is important to distinguish between a type that can be compared for equality or equivalence and a representation of equivalence on some type. This trait is for representing the latter.
An equivalence relation is a binary relation on a type. This relation is exposed as the
equivmethod of theEquivtrait. The relation must be:equiv(x, x) == truefor any x of typeT.equiv(x, y) == equiv(y, x)for anyxandyof typeT.equiv(x, y) == trueandequiv(y, z) == true, thenequiv(x, z) == truefor anyx,y, andzof typeT.1.0, 2008-04-03
2.7