Trait/Object

zio.prelude.coherent

EqualIdempotent

Related Docs: object EqualIdempotent | package coherent

Permalink

trait EqualIdempotent[A] extends AssociativeEqual[A] with Idempotent[A]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EqualIdempotent
  2. Idempotent
  3. AssociativeEqual
  4. Equal
  5. Associative
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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
    Equal
  2. abstract def combine(l: ⇒ A, r: ⇒ A): A

    Permalink
    Definition Classes
    Associative

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: ⇒ 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
  6. 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
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def combineIdempotent(l: ⇒ A, r: ⇒ A)(implicit A: Equal[A]): A

    Permalink

    If the values are equal, it doesn't attempt to combine them and promptly returns the first one.

    If the values are equal, it doesn't attempt to combine them and promptly returns the first one. If not equal, the values are combined normally.

    Definition Classes
    Idempotent
  9. def combineNormal(l: ⇒ A, r: ⇒ A): A

    Permalink
    Attributes
    protected
    Definition Classes
    Idempotent
  10. def contramap[B](f: (B) ⇒ A): Equal[B]

    Permalink

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

    Constructs an Equal[B] given an Equal[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 the compare the A values for equality.

    Definition Classes
    Equal
  11. 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
  12. 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
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. 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
  15. def equals(arg0: Any): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def idempotent(implicit A: Equal[A]): Idempotent[A]

    Permalink

    Creates a new instance which internally uses combineIdempotent for combining values.

    Creates a new instance which internally uses combineIdempotent for combining values.

    Definition Classes
    Idempotent
  20. final def intersperse(middle: A): Associative[A]

    Permalink
    Definition Classes
    Associative
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def multiplyOption(n: Int)(a: A): Option[A]

    Permalink
    Definition Classes
    Associative
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. 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
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. final def repeat(a: A)(n: Int): A

    Permalink
    Definition Classes
    Associative
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toScala[A1 <: A]: Equiv[A1]

    Permalink
    Definition Classes
    Equal
  30. def toString(): String

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

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

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

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

Inherited from Idempotent[A]

Inherited from AssociativeEqual[A]

Inherited from Equal[A]

Inherited from Associative[A]

Inherited from AnyRef

Inherited from Any

Ungrouped