Scala Library
|
|
scala/Equiv.scala
]
trait
Equiv[T]
extends
AnyRefequiv
method of the Equiv
trait. This
relation must be:
equiv(x, x) == true
, for any x
of
type T
.equiv(x, y) == equiv(y, x)
, for any x
and y
of type T
.equiv(x, y) == true
and equiv(y, z) == true
then equiv(x, z) == true
, for any x
, y
,
and z
of type T
.Method Summary | |
abstract def
|
equiv
(x : T, y : T) : Boolean
Returns
true iff x is equivalent to
y . |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
Scala Library
|
|