Equiv

scala.math.Equiv$
See theEquiv companion trait
object Equiv extends LowPriorityEquiv

Attributes

Companion:
trait
Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Equiv.type

Members list

Concise view

Type members

Classlikes

object BigDecimal extends Equiv[BigDecimal]

Attributes

Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object BigInt extends Equiv[BigInt]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[BigInt]
class Object
trait Matchable
class Any
Self type
BigInt.type
object Boolean extends Equiv[Boolean]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Boolean]
class Object
trait Matchable
class Any
Self type
Boolean.type
object Byte extends Equiv[Byte]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Byte]
class Object
trait Matchable
class Any
Self type
Byte.type
object Char extends Equiv[Char]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Char]
class Object
trait Matchable
class Any
Self type
Char.type

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Double]
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Float]
class Object
trait Matchable
class Any
Self type
object Double

Equivs for Doubles.

Equivs for Doubles.

Attributes

Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Double.type

Attributes

Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Implicits.type
object Float

Equivs for Floats.

Equivs for Floats.

Attributes

Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Float.type
object Implicits extends ExtraImplicits

An object containing implicits which are not in the default scope.

An object containing implicits which are not in the default scope.

Attributes

Source:
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Int extends Equiv[Int]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Int]
class Object
trait Matchable
class Any
Self type
Int.type
object Long extends Equiv[Long]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Long]
class Object
trait Matchable
class Any
Self type
Long.type
object Short extends Equiv[Short]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Short]
class Object
trait Matchable
class Any
Self type
Short.type
object String extends Equiv[String]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[String]
class Object
trait Matchable
class Any
Self type
String.type
object Symbol extends Equiv[Symbol]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Symbol]
class Object
trait Matchable
class Any
Self type
Symbol.type
object Unit extends Equiv[Unit]

Attributes

Source:
Equiv.scala
Graph
Supertypes
trait Equiv[Unit]
class Object
trait Matchable
class Any
Self type
Unit.type

Value members

Concrete methods

def apply[T : Equiv]: Equiv[T]

Attributes

Source:
Equiv.scala
def by[T, S : Equiv](f: T => S): Equiv[T]

Attributes

Source:
Equiv.scala
def fromComparator[T](cmp: Comparator[T]): Equiv[T]

Attributes

Source:
Equiv.scala
def fromFunction[T](cmp: (T, T) => Boolean): Equiv[T]

Attributes

Source:
Equiv.scala
def reference[T <: AnyRef]: Equiv[T]

Attributes

Source:
Equiv.scala
def universal[T]: Equiv[T]

Attributes

Source:
Equiv.scala

Implicits

Implicits

implicit def Option[T](implicit eqv: Equiv[T]): Equiv[Option[T]]

Attributes

Source:
Equiv.scala
implicit def Tuple2[T1, T2](implicit eqv1: Equiv[T1], eqv2: Equiv[T2]): Equiv[(T1, T2)]

Attributes

Source:
Equiv.scala
implicit def Tuple3[T1, T2, T3](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3]): Equiv[(T1, T2, T3)]

Attributes

Source:
Equiv.scala
implicit def Tuple4[T1, T2, T3, T4](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4]): Equiv[(T1, T2, T3, T4)]

Attributes

Source:
Equiv.scala
implicit def Tuple5[T1, T2, T3, T4, T5](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4], eqv5: Equiv[T5]): Equiv[(T1, T2, T3, T4, T5)]

Attributes

Source:
Equiv.scala
implicit def Tuple6[T1, T2, T3, T4, T5, T6](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4], eqv5: Equiv[T5], eqv6: Equiv[T6]): Equiv[(T1, T2, T3, T4, T5, T6)]

Attributes

Source:
Equiv.scala
implicit def Tuple7[T1, T2, T3, T4, T5, T6, T7](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4], eqv5: Equiv[T5], eqv6: Equiv[T6], eqv7: Equiv[T7]): Equiv[(T1, T2, T3, T4, T5, T6, T7)]

Attributes

Source:
Equiv.scala
implicit def Tuple8[T1, T2, T3, T4, T5, T6, T7, T8](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4], eqv5: Equiv[T5], eqv6: Equiv[T6], eqv7: Equiv[T7], eqv8: Equiv[T8]): Equiv[(T1, T2, T3, T4, T5, T6, T7, T8)]

Attributes

Source:
Equiv.scala
implicit def Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9](implicit eqv1: Equiv[T1], eqv2: Equiv[T2], eqv3: Equiv[T3], eqv4: Equiv[T4], eqv5: Equiv[T5], eqv6: Equiv[T6], eqv7: Equiv[T7], eqv8: Equiv[T8], eqv9: Equiv[T9]): Equiv[(T1, T2, T3, T4, T5, T6, T7, T8, T9)]

Attributes

Source:
Equiv.scala

Deprecated and Inherited implicits

implicit def universalEquiv[T]: Equiv[T]

Attributes

Deprecated
[Since version 2.13.0]

This implicit universal Equiv instance allows accidentally comparing instances of types for which equality isn't well-defined or implemented. (For example, it does not make sense to compare two Function1 instances.) Use Equiv.universal explicitly instead. If you really want an implicit universal Equiv instance despite the potential problems, consider implicit def universalEquiv[T]: Equiv[T] = universal[T].

Inherited from:
LowPriorityEquiv
Source:
Equiv.scala