Trait/Object

zio.prelude.coherent

HashOrd

Related Docs: object HashOrd | package coherent

Permalink

trait HashOrd[-A] extends HashPartialOrd[A] with Ord[A]

Self Type
HashOrd[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HashOrd
  2. Ord
  3. HashPartialOrd
  4. PartialOrd
  5. Hash
  6. Equal
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def checkCompare(l: A, r: A): Ordering

    Permalink

    Returns the result of comparing two values of type A.

    Returns the result of comparing two values of type A.

    Attributes
    protected
    Definition Classes
    OrdPartialOrd
  2. abstract def hash(a: A): Int

    Permalink

    Returns the hash of the specified value.

    Returns the hash of the specified value.

    Definition Classes
    Hash

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def both[B](that: ⇒ Ord[B]): Ord[(A, B)]

    Permalink

    Constructs an Ord[(A, B)] given an Ord[A] and Ord[B] by first comparing the A values, and then if the A values are equal comparing the B values

    Constructs an Ord[(A, B)] given an Ord[A] and Ord[B] by first comparing the A values, and then if the A values are equal comparing the B values

    Definition Classes
    Ord
  6. final def both[B](that: ⇒ PartialOrd[B]): PartialOrd[(A, B)]

    Permalink

    Constructs an PartialOrd[(A, B)] given an PartialOrd[A] and PartialOrd[B] by first comparing the A values, and then if the A values are equal comparing the B values

    Constructs an PartialOrd[(A, B)] given an PartialOrd[A] and PartialOrd[B] by first comparing the A values, and then if the A values are equal comparing the B values

    Definition Classes
    PartialOrd
  7. def both[B](that: Hash[B]): Hash[(A, B)]

    Permalink

    Constructs a Hash[(A, B)] given a Hash[A] and Hash[B] by hashing the A and B values together.

    Constructs a Hash[(A, B)] given a Hash[A] and Hash[B] by hashing the A and B values together.

    Definition Classes
    Hash
  8. final def both[B](that: ⇒ Equal[B]): Equal[(A, B)]

    Permalink

    Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

    Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

    Definition Classes
    Equal
  9. final def bothWith[B, C](that: ⇒ Ord[B])(f: (C) ⇒ (A, B)): Ord[C]

    Permalink

    Constructs an Ord[C] given an Ord[A], an Ord[B] and a function f to transform a C value into an (A, B).

    Constructs an Ord[C] given an Ord[A], an Ord[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values, and then if the A values are equal compare the B values.

    Definition Classes
    Ord
  10. final def bothWith[B, C](that: ⇒ PartialOrd[B])(f: (C) ⇒ (A, B)): PartialOrd[C]

    Permalink

    Constructs an PartialOrd[C] given an PartialOrd[A], an PartialOrd[B] and a function f to transform a C value into an (A, B).

    Constructs an PartialOrd[C] given an PartialOrd[A], an PartialOrd[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values, and then if the A values are equal compare the B values.

    Definition Classes
    PartialOrd
  11. def bothWith[B, C](that: Hash[B])(f: (C) ⇒ (A, B)): Hash[C]

    Permalink

    Constructs a Hash[C] given a Hash[A], a Hash[B] and a function f to transform a C value into an (A, B).

    Constructs a Hash[C] given a Hash[A], a Hash[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), and hash the A and B values together.

    Definition Classes
    Hash
  12. final def bothWith[B, C](that: ⇒ Equal[B])(f: (C) ⇒ (A, B)): Equal[C]

    Permalink

    Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B).

    Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

    Definition Classes
    Equal
  13. def checkEqual(l: A, r: A): Boolean

    Permalink

    Returns whether two values of type A are equal.

    Returns whether two values of type A are equal.

    Attributes
    protected
    Definition Classes
    OrdPartialOrdEqual
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. final def compare(l: A, r: A): Ordering

    Permalink

    Returns the result of comparing two values of type A.

    Returns the result of comparing two values of type A.

    Definition Classes
    OrdPartialOrd
  16. final def contramap[B](f: (B) ⇒ A): Hash[B] with Ord[B]

    Permalink

    Constructs an Ord[B] given an Ord[A] and a function f to transform a B value into an A value.

    Constructs an Ord[B] given an Ord[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and compare the A values.

    Definition Classes
    HashOrdOrdHashPartialOrdPartialOrdHashEqual
  17. final def either[B](that: ⇒ Ord[B]): Ord[Either[A, B]]

    Permalink

    Constructs an Ord[Either[A, B]] given an Ord[A] and an Ord[B].

    Constructs an Ord[Either[A, B]] given an Ord[A] and an Ord[B]. If one value is Left and one value is Right it will treat the Left value as less than the Right value. Otherwise, it will compare the two values.

    Definition Classes
    Ord
  18. final def either[B](that: ⇒ PartialOrd[B]): PartialOrd[Either[A, B]]

    Permalink

    Constructs an PartialOrd[Either[A, B]] given an PartialOrd[A] and an PartialOrd[B].

    Constructs an PartialOrd[Either[A, B]] given an PartialOrd[A] and an PartialOrd[B]. If one value is Left and one value is Right it will treat the Left value as less than the Right value. Otherwise, it will compare the two values.

    Definition Classes
    PartialOrd
  19. def either[B](that: Hash[B]): Hash[Either[A, B]]

    Permalink

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

    Constructs a Hash[Either[A, B]] given a Hash[A] and a Hash[B]. The instance will hash either the A or B values.

    Definition Classes
    Hash
  20. final def either[B](that: ⇒ Equal[B]): Equal[Either[A, B]]

    Permalink

    Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B].

    Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

    Definition Classes
    Equal
  21. final def eitherWith[B, C](that: ⇒ Ord[B])(f: (C) ⇒ Either[A, B]): Ord[C]

    Permalink

    Constructs an Ord[C] given an Ord[A], an Ord[B], and a function f to transform a C value into an Either[A, B].

    Constructs an Ord[C] given an Ord[A], an Ord[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B]. If one value is Left and one value is Right it will treat the Left value as less than the Right value. Otherwise, it will compare the two values.

    Definition Classes
    Ord
  22. final def eitherWith[B, C](that: ⇒ PartialOrd[B])(f: (C) ⇒ Either[A, B]): PartialOrd[C]

    Permalink

    Constructs an PartialOrd[C] given an PartialOrd[A], an PartialOrd[B], and a function f to transform a C value into an Either[A, B].

    Constructs an PartialOrd[C] given an PartialOrd[A], an PartialOrd[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B]. If one value is Left and one value is Right it will treat the Left value as less than the Right value. Otherwise, it will compare the two values.

    Definition Classes
    PartialOrd
  23. def eitherWith[B, C](that: Hash[B])(f: (C) ⇒ Either[A, B]): Hash[C]

    Permalink

    Constructs a Hash[C] given a Hash[A], a Hash[B], and a function f to transform a C value into an Either[A, B].

    Constructs a Hash[C] given a Hash[A], a Hash[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then hash either the A or B values.

    Definition Classes
    Hash
  24. final def eitherWith[B, C](that: ⇒ Equal[B])(f: (C) ⇒ Either[A, B]): Equal[C]

    Permalink

    Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B].

    Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

    Definition Classes
    Equal
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def equal(l: A, r: A): Boolean

    Permalink

    Returns whether two values of type A are equal.

    Returns whether two values of type A are equal.

    Definition Classes
    Equal
  27. def equals(arg0: Any): Boolean

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

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

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

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

    Permalink
    Definition Classes
    Any
  32. final def mapOrdering(f: (Ordering) ⇒ Ordering): Ord[A]

    Permalink

    Constructs a new Ord[A] by mapping the result of this ordering using the specified function.

    Constructs a new Ord[A] by mapping the result of this ordering using the specified function.

    Definition Classes
    Ord
  33. final def mapPartialOrdering(f: (PartialOrdering) ⇒ PartialOrdering): PartialOrd[A]

    Permalink

    Constructs a new PartialOrd[A] by mapping the result of this ordering using the specified function.

    Constructs a new PartialOrd[A] by mapping the result of this ordering using the specified function.

    Definition Classes
    PartialOrd
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notEqual(l: A, r: A): Boolean

    Permalink

    Returns whether two values of type A are not equal.

    Returns whether two values of type A are not equal.

    Definition Classes
    Equal
  36. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  38. final def reverse: Ord[A]

    Permalink

    Returns a new ordering that is the reverse of this one.

    Returns a new ordering that is the reverse of this one.

    Definition Classes
    Ord
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toScala[A1 <: A]: scala.math.Ordering[A1]

    Permalink
    Definition Classes
    OrdEqual
  41. def toString(): String

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

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

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

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

Inherited from Ord[A]

Inherited from HashPartialOrd[A]

Inherited from PartialOrd[A]

Inherited from Hash[A]

Inherited from Equal[A]

Inherited from AnyRef

Inherited from Any

Ungrouped