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

Type members

Classlikes

object BigDecimal extends Equiv[BigDecimal]

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Source
Equiv.scala
Supertypes
trait StrictEquiv
trait Equiv[Double]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Source
Equiv.scala
Supertypes
trait StrictEquiv
trait Equiv[Float]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object Double

Equivs for Doubles.

Equivs for Doubles.

Attributes

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

Attributes

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

Equivs for Floats.

Equivs for Floats.

Attributes

Source
Equiv.scala
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
Supertypes
class Object
trait Matchable
class Any
Self type
Implicits.type
object Int extends Equiv[Int]

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Source
Equiv.scala
Supertypes
trait Equiv[Unit]
trait Serializable
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