Abstract Value Members
-
abstract
def
from: (B) ⇒ A
-
abstract
def
to: (A) ⇒ B
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
-
-
-
final
def
asInstanceOf[T0]: T0
-
def
canonicalLeft(a: A): Option[A]
-
def
canonicalLeftOrError[E](a: A)(implicit ev1: <:<[Nothing, E], ev2: <:<[Nothing, E]): Either[E, A]
-
def
canonicalRight(b: B): Option[B]
-
def
canonicalRightOrError[E](b: B)(implicit ev1: <:<[Nothing, E], ev2: <:<[Nothing, E]): Either[E, B]
-
def
clone(): AnyRef
-
-
-
-
-
def
finalize(): Unit
-
-
final
def
fromPartial: (B) ⇒ Either[Nothing, A]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
toPartial: (A) ⇒ Either[Nothing, B]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
An
Equivalence[A, B]
defines an equivalence between two typesA
andB
. These types represent different ways to store the same information.For example, a
List[Byte]
is equivalent to aVector[Byte]
. Similarly, aList[Char]
is equivalent to aString
.Equivalences are symmetrical. So if
A
is equivalent toB
, thenB
is equivalent toA
.