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 forAnyvalues.Ord(and thus alsoEqual) instance forAnyvalues. Note that since values of typeAnycontain no information, all values of typeAnycan be treated as equal to each other. - implicit val BigDecimalHashOrd: Hash[BigDecimal] with Ord[BigDecimal]
The
HashandOrdinstance forBigDecimal. - implicit val BigIntHashOrd: Hash[BigInt] with Ord[BigInt]
The
HashandOrdinstance forBigInt. - implicit val BooleanHashOrd: Hash[Boolean] with Ord[Boolean]
HashandOrd(and thus alsoEqual) instance forBooleanvalues. - implicit val ByteHashOrd: Hash[Byte] with Ord[Byte]
HashandOrd(and thus alsoEqual) instance forBytevalues. - 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]
HashandOrd(and thus alsoEqual) instance forCharvalues. - 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 forClassvalues. - 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]
Equalinstance forDoublefor imprecise equality with configurable tolerance. - implicit val DoubleHashOrd: Hash[Double] with Ord[Double]
HashandOrd(and thus alsoEqual) instance forDoublevalues.HashandOrd(and thus alsoEqual) instance forDoublevalues.Note that to honor the contract
* that a value is always equal to itself, comparing
Double.NaNwith itself will returntrue.* of a total ordering,
Double.NaNwill be treated as greater than any other number. - implicit val DurationScalaHashOrd: Hash[Duration] with Ord[Duration]
HashandOrd(and thus alsoEqual) instance for ScalaDurationvalues. - implicit val DurationZIOHashOrd: Hash[Duration] with Ord[Duration]
HashandOrd(and thus alsoEqual) instance for ZIODurationvalues. - 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
CommutativeBothandIdentityBoth(and thusAssociativeBoth) instance forEqual. - implicit val EqualCommutativeIdentityEither: CommutativeEither[Equal] with IdentityEither[Equal]
The
CommutativeEitherandIdentityEither(and thusAssociativeEither) instance forEqual. - implicit val EqualContravariant: Contravariant[Equal]
The
Contravariantinstance 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]
HashandOrdand (and thus alsoEqual) instance forFiber.Idvalues. - def FloatEqualWithEpsilon(epsilon: Float = 1 / (1024f * 1024)): Equal[Float]
Equalinstance forFloatfor imprecise equality with configurable tolerance. - implicit val FloatHashOrd: Hash[Float] with Ord[Float]
HashandOrd(and thus alsoEqual) instance forFloatvalues.HashandOrd(and thus alsoEqual) instance forFloatvalues.Note that to honor the contract
* that a value is always equal to itself, comparing
Float.NaNwith itself will returntrue.* of a total ordering,
Float.NaNwill be treated as greater than any other number. - implicit val IntHashOrd: Hash[Int] with Ord[Int]
HashandOrd(and thus alsoEqual) instance forIntvalues. - 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]
HashandOrd(and thus alsoEqual) instance forLongvalues. - 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]
HashandOrd(and thus alsoEqual) instance forNothingvalues.HashandOrd(and thus alsoEqual) instance forNothingvalues. Note that since there are not values of typeNothingtheequalsmethod 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]]
PartialOrdandHash(and thus alsoEqual) instance forSet[A]values.PartialOrdandHash(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]
HashandOrd(and thus alsoEqual) instance forShortvalues. - implicit val StringHashOrd: Hash[String] with Ord[String]
HashandOrd(and thus alsoEqual) instance forStringvalues. - lazy val ThrowableHash: Hash[Throwable]
Hash(and thus alsoEqual) instance forThrowablevalues.Hash(and thus alsoEqual) instance forThrowablevalues. 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor each element of the product type. - implicit def Tuple2Equal[A, B](implicit arg0: Equal[A], arg1: Equal[B]): Equal[(A, B)]
Derives an
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor 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
Equalfor a product type given anEqualfor each element of the product type. - implicit val UnitHashOrd: Hash[Unit] with Ord[Unit]
HashandOrd(and thus alsoEqual) instance forUnitvalues.HashandOrd(and thus alsoEqual) instance forUnitvalues. Since there is only oneUnitvalue 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 forZTracevalues. - 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 ofequalsfor 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()