Object/Trait

zio.prelude

Hash

Related Docs: trait Hash | package prelude

Permalink

object Hash extends Lawful[Hash]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hash
  2. ZLawful
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +[Caps1[x] <: Hash[x], R1 <: Any](that: ZLawful[Caps1, R1]): ZLawful[Caps1, R1]

    Permalink
    Definition Classes
    ZLawful
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. implicit def ChunkHash[A](implicit arg0: Hash[A]): Hash[Chunk[A]]

    Permalink

    Derives a Hash[Chunk[A]] given a Hash[A].

  6. implicit def DeriveHash[F[_], A](implicit derive: Derive[F, Hash], hash: Hash[A]): Hash[F[A]]

    Permalink

    Derives a Hash[F[A]] given a Derive[F, Hash] and a Hash[A].

  7. implicit def EitherHash[A, B](implicit arg0: Hash[A], arg1: Hash[B]): Hash[Either[A, B]]

    Permalink

    Derives a Hash[Either[A, B]] given a Hash[A] and a Hash[B].

  8. implicit val HashContravariant: Contravariant[Hash]

    Permalink

    The contravariant instance for Hash.

  9. implicit val HashIdentityBoth: IdentityBoth[Hash]

    Permalink

    The IdentityBoth (and thus AssociativeBoth) instance for Hash.

  10. implicit val HashIdentityEither: IdentityEither[Hash]

    Permalink

    The IdentityEither (and thus AssociativeEither) instance for Hash.

  11. implicit def ListHash[A](implicit arg0: Hash[A]): Hash[List[A]]

    Permalink

    Derives a Hash[List[A]] given a Hash[A].

  12. implicit def MapHash[A, B](implicit arg0: Hash[B]): Hash[Map[A, B]]

    Permalink

    Derives a Hash[Map[A, B]] given a Hash[B].

    Derives a Hash[Map[A, B]] given a Hash[B]. Due to the limitations of Scala's Map, this uses object equality and hash code on the keys.

  13. implicit def NonEmptyChunkHash[A](implicit arg0: Hash[A]): Hash[NonEmptyChunk[A]]

    Permalink

    Derives a Hash[NonEmptyChunk[A]] given a Hash[A].

  14. implicit def OptionHash[A](implicit arg0: Hash[A]): Hash[Option[A]]

    Permalink

    Derives a Hash[Option[A]] given a Hash[A].

  15. implicit def Tuple10Hash[A, B, C, D, E, F, G, H, I, J](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J]): Hash[(A, B, C, D, E, F, G, H, I, J)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  16. implicit def Tuple11Hash[A, B, C, D, E, F, G, H, I, J, K](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K]): Hash[(A, B, C, D, E, F, G, H, I, J, K)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  17. implicit def Tuple12Hash[A, B, C, D, E, F, G, H, I, J, K, L](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  18. implicit def Tuple13Hash[A, B, C, D, E, F, G, H, I, J, K, L, M](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  19. implicit def Tuple14Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  20. implicit def Tuple15Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  21. implicit def Tuple16Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  22. implicit def Tuple17Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  23. implicit def Tuple18Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q], arg17: Hash[R]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  24. implicit def Tuple19Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q], arg17: Hash[R], arg18: Hash[S]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  25. implicit def Tuple20Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q], arg17: Hash[R], arg18: Hash[S], arg19: Hash[T]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  26. implicit def Tuple21Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q], arg17: Hash[R], arg18: Hash[S], arg19: Hash[T], arg20: Hash[U]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  27. implicit def Tuple22Hash[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I], arg9: Hash[J], arg10: Hash[K], arg11: Hash[L], arg12: Hash[M], arg13: Hash[N], arg14: Hash[O], arg15: Hash[P], arg16: Hash[Q], arg17: Hash[R], arg18: Hash[S], arg19: Hash[T], arg20: Hash[U], arg21: Hash[V]): Hash[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  28. implicit def Tuple2Hash[A, B](implicit arg0: Hash[A], arg1: Hash[B]): Hash[(A, B)]

    Permalink

    Derives a Hash for a product type given a Hash for each element of the product type.

  29. implicit def Tuple3Hash[A, B, C](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C]): Hash[(A, B, C)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  30. implicit def Tuple4Hash[A, B, C, D](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D]): Hash[(A, B, C, D)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  31. implicit def Tuple5Hash[A, B, C, D, E](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E]): Hash[(A, B, C, D, E)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  32. implicit def Tuple6Hash[A, B, C, D, E, F](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F]): Hash[(A, B, C, D, E, F)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  33. implicit def Tuple7Hash[A, B, C, D, E, F, G](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G]): Hash[(A, B, C, D, E, F, G)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  34. implicit def Tuple8Hash[A, B, C, D, E, F, G, H](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H]): Hash[(A, B, C, D, E, F, G, H)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  35. implicit def Tuple9Hash[A, B, C, D, E, F, G, H, I](implicit arg0: Hash[A], arg1: Hash[B], arg2: Hash[C], arg3: Hash[D], arg4: Hash[E], arg5: Hash[F], arg6: Hash[G], arg7: Hash[H], arg8: Hash[I]): Hash[(A, B, C, D, E, F, G, H, I)]

    Permalink

    Derives an Hash for a product type given an Hash for each element of the product type.

  36. implicit def VectorHash[A](implicit arg0: Hash[A]): Hash[Vector[A]]

    Permalink

    Derives a Hash[Vector[A]] given a Hash[A].

  37. def apply[A](implicit hash: Hash[A]): Hash[A]

    Permalink

    Summons an implicit Hash[A].

  38. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  39. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. val consistencyLaw: Laws[Hash]

    Permalink

    For all values a1 and a2, if a1 is equal to a2 then the hash of a1 is equal to the hash of a2.

  41. def default[A]: Hash[A]

    Permalink

    Constructs a Hash[A] that uses the default notion of hashing embodied in the implementation of hashCode for values of type A.

  42. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  44. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  45. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  46. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. val laws: Laws[Hash]

    Permalink

    The set of all laws that instances of Hash must satisfy.

    The set of all laws that instances of Hash must satisfy.

    Definition Classes
    Hash → ZLawful
  49. def make[A](hash0: (A) ⇒ Int, equal0: (A, A) ⇒ Boolean): Hash[A]

    Permalink

    Constructs an instance from a function.

  50. def makeFrom[A](hash0: (A) ⇒ Int, equal0: Equal[A]): Hash[A]

    Permalink

    Constructs an instance from a hash function and an Equal instance.

  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  55. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ZLawful[Hash, Any]

Inherited from AnyRef

Inherited from Any

Ungrouped