object Equal
- Alphabetic
- By Inheritance
- Equal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AnyHashOrd: Hash[Any] with Ord[Any]
Ord
(and thus alsoEqual
) instance forAny
values.Ord
(and thus alsoEqual
) instance forAny
values. Note that since values of typeAny
contain no information, all values of typeAny
can be treated as equal to each other. - implicit val BigDecimalHashOrd: Hash[BigDecimal] with Ord[BigDecimal]
The
Hash
andOrd
instance forBigDecimal
. - implicit val BigIntHashOrd: Hash[BigInt] with Ord[BigInt]
The
Hash
andOrd
instance forBigInt
. - implicit val BooleanHashOrd: Hash[Boolean] with Ord[Boolean]
Hash
andOrd
(and thus alsoEqual
) instance forBoolean
values. - implicit val ByteHashOrd: Hash[Byte] with Ord[Byte]
Hash
andOrd
(and thus alsoEqual
) instance forByte
values. - implicit def CauseHash[A]: Hash[Cause[A]]
Hash
(and thus alsoEqual
) instance forCause[A]
.Hash
(and thus alsoEqual
) instance forCause[A]
. Note, that it doesn't takeHash[A]
norEqual[A]
into account. - implicit val CharHashOrd: Hash[Char] with Ord[Char]
Hash
andOrd
(and thus alsoEqual
) instance forChar
values. - implicit def ChunkEqual[A](implicit arg0: Equal[A]): Equal[Chunk[A]]
Derives an
Equal[Chunk[A]]
given anEqual[A]
. - implicit val ClassHash: Hash[Class[_]]
Hash
(and thus alsoEqual
) instance forClass
values. - implicit def DeriveEqual[F[_], A](implicit arg0: DeriveEqual[F], arg1: Equal[A]): Equal[F[A]]
Derives an
Equal[F[A]]
given aDerive[F, Equal]
and anEqual[A]
. - def DoubleEqualWithEpsilon(epsilon: Double = 1 / (1024d * 1024 * 1024 * 1024)): Equal[Double]
Equal
instance forDouble
for imprecise equality with configurable tolerance. - implicit val DoubleHashOrd: Hash[Double] with Ord[Double]
Hash
andOrd
(and thus alsoEqual
) instance forDouble
values.Hash
andOrd
(and thus alsoEqual
) instance forDouble
values.Note that to honor the contract
* that a value is always equal to itself, comparing
Double.NaN
with itself will returntrue
.* of a total ordering,
Double.NaN
will be treated as greater than any other number. - implicit val DurationScalaHashOrd: Hash[Duration] with Ord[Duration]
Hash
andOrd
(and thus alsoEqual
) instance for ScalaDuration
values. - implicit val DurationZIOHashOrd: Hash[Duration] with Ord[Duration]
Hash
andOrd
(and thus alsoEqual
) instance for ZIODuration
values. - implicit def EitherEqual[A, B](implicit arg0: Equal[A], arg1: Equal[B]): Equal[Either[A, B]]
Derives an
Equal[Either[A, B]]
given anEqual[A]
and anEqual[B]
. - implicit val EqualCommutativeIdentityBoth: CommutativeBoth[Equal] with IdentityBoth[Equal]
The
CommutativeBoth
andIdentityBoth
(and thusAssociativeBoth
) instance forEqual
. - implicit val EqualCommutativeIdentityEither: CommutativeEither[Equal] with IdentityEither[Equal]
The
CommutativeEither
andIdentityEither
(and thusAssociativeEither
) instance forEqual
. - implicit val EqualContravariant: Contravariant[Equal]
The
Contravariant
instance forEqual
. - implicit def ExitEqual[E, A](implicit arg0: Equal[E], arg1: Equal[A]): Equal[Exit[E, A]]
Derives an
Equal[Exit[E, A]]
given anEqual[A]
andEqual[B]
. - implicit lazy val FiberIdHashOrd: Hash[Fiber.Id] with Ord[Fiber.Id]
Hash
andOrd
and (and thus alsoEqual
) instance forFiber.Id
values. - def FloatEqualWithEpsilon(epsilon: Float = 1 / (1024f * 1024)): Equal[Float]
Equal
instance forFloat
for imprecise equality with configurable tolerance. - implicit val FloatHashOrd: Hash[Float] with Ord[Float]
Hash
andOrd
(and thus alsoEqual
) instance forFloat
values.Hash
andOrd
(and thus alsoEqual
) instance forFloat
values.Note that to honor the contract
* that a value is always equal to itself, comparing
Float.NaN
with itself will returntrue
.* of a total ordering,
Float.NaN
will be treated as greater than any other number. - implicit val IntHashOrd: Hash[Int] with Ord[Int]
Hash
andOrd
(and thus alsoEqual
) instance forInt
values. - implicit def ListEqual[A](implicit arg0: Equal[A]): Equal[List[A]]
Derives an
Equal[List[A]]
given anEqual[A]
. - implicit val LongHashOrd: Hash[Long] with Ord[Long]
Hash
andOrd
(and thus alsoEqual
) instance forLong
values. - implicit def MapPartialOrd[A, B](implicit arg0: Equal[B]): PartialOrd[Map[A, B]]
Derives a
PartialOrd[Map[A, B]]
(and thusEqual[Map[A, B]]
) given anEqual[B]
.Derives a
PartialOrd[Map[A, B]]
(and thusEqual[Map[A, B]]
) given anEqual[B]
. Due to the limitations of Scala'sMap
, this uses object equality on the keys. - implicit def NonEmptyChunkEqual[A](implicit arg0: Equal[A]): Equal[NonEmptyChunk[A]]
Derives an
Equal[NonEmptyChunk[A]]
given anEqual[A]
. - implicit val NothingHashOrd: Hash[Nothing] with Ord[Nothing]
Hash
andOrd
(and thus alsoEqual
) instance forNothing
values.Hash
andOrd
(and thus alsoEqual
) instance forNothing
values. Note that since there are not values of typeNothing
theequals
method of this instance can never be called but it can be useful in deriving instances for more complex types. - implicit def OptionEqual[A](implicit arg0: Equal[A]): Equal[Option[A]]
Derives an
Equal[Option[A]]
given anEqual[A]
. - implicit def SetHashPartialOrd[A]: Hash[Set[A]] with PartialOrd[Set[A]]
PartialOrd
andHash
(and thus alsoEqual
) instance forSet[A]
values.PartialOrd
andHash
(and thus alsoEqual
) instance forSet[A]
values. Due to the limitations of Scala'sSet
, this uses object equality and hash code on the elements. - implicit val ShortHashOrd: Hash[Short] with Ord[Short]
Hash
andOrd
(and thus alsoEqual
) instance forShort
values. - implicit val StringHashOrd: Hash[String] with Ord[String]
Hash
andOrd
(and thus alsoEqual
) instance forString
values. - lazy val ThrowableHash: Hash[Throwable]
Hash
(and thus alsoEqual
) instance forThrowable
values.Hash
(and thus alsoEqual
) instance forThrowable
values. Comparison is based on: Class, message and cause (stack trace is ignored).Note: This is intentionally not in the implicit scope, because it would allow comparing _all_ Throwables across hierarchies defined by users, which would typically be a mistake.
- implicit def TryEqual[A](implicit arg0: Equal[A]): Equal[Try[A]]
Derives an
Equal[Try[A]]
given anEqual[A]
. - implicit def Tuple10Equal[A, B, C, D, E, F, G, H, I, J](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J]): Equal[(A, B, C, D, E, F, G, H, I, J)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple11Equal[A, B, C, D, E, F, G, H, I, J, K](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K]): Equal[(A, B, C, D, E, F, G, H, I, J, K)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple12Equal[A, B, C, D, E, F, G, H, I, J, K, L](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple13Equal[A, B, C, D, E, F, G, H, I, J, K, L, M](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple14Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple15Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple16Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple17Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple18Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q], arg17: Equal[R]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple19Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q], arg17: Equal[R], arg18: Equal[S]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple20Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q], arg17: Equal[R], arg18: Equal[S], arg19: Equal[T]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple21Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q], arg17: Equal[R], arg18: Equal[S], arg19: Equal[T], arg20: Equal[U]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple22Equal[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I], arg9: Equal[J], arg10: Equal[K], arg11: Equal[L], arg12: Equal[M], arg13: Equal[N], arg14: Equal[O], arg15: Equal[P], arg16: Equal[Q], arg17: Equal[R], arg18: Equal[S], arg19: Equal[T], arg20: Equal[U], arg21: Equal[V]): Equal[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple2Equal[A, B](implicit arg0: Equal[A], arg1: Equal[B]): Equal[(A, B)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple3Equal[A, B, C](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C]): Equal[(A, B, C)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple4Equal[A, B, C, D](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D]): Equal[(A, B, C, D)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple5Equal[A, B, C, D, E](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E]): Equal[(A, B, C, D, E)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple6Equal[A, B, C, D, E, F](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F]): Equal[(A, B, C, D, E, F)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple7Equal[A, B, C, D, E, F, G](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G]): Equal[(A, B, C, D, E, F, G)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple8Equal[A, B, C, D, E, F, G, H](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H]): Equal[(A, B, C, D, E, F, G, H)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit def Tuple9Equal[A, B, C, D, E, F, G, H, I](implicit arg0: Equal[A], arg1: Equal[B], arg2: Equal[C], arg3: Equal[D], arg4: Equal[E], arg5: Equal[F], arg6: Equal[G], arg7: Equal[H], arg8: Equal[I]): Equal[(A, B, C, D, E, F, G, H, I)]
Derives an
Equal
for a product type given anEqual
for each element of the product type. - implicit val UnitHashOrd: Hash[Unit] with Ord[Unit]
Hash
andOrd
(and thus alsoEqual
) instance forUnit
values.Hash
andOrd
(and thus alsoEqual
) instance forUnit
values. Since there is only oneUnit
value all equality comparisons will always be true. - implicit def VectorEqual[A](implicit arg0: Equal[A]): Equal[Vector[A]]
Derives an
Equal[Vector[A]]
given anEqual[A]
. - implicit val ZTraceHash: Hash[ZTrace]
Hash
(and thus alsoEqual
) instance forZTrace
values. - def apply[A](implicit equal: Equal[A]): Equal[A]
Summons an implicit
Equal[A]
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def default[A]: Equal[A]
Constructs an
Equal[A]
that uses the default notion of equality embodied in the implementation ofequals
for values of typeA
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromScala[A](implicit equiv: Equiv[A]): Equal[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make[A](equal: (A, A) => Boolean): Equal[A]
Constructs an
Equal[A]
from a function.Constructs an
Equal[A]
from a function. The instance will be optimized to first compare the values for reference equality and then compare the values for value equality. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()