Packages

c

com.twitter.algebird

InvariantSemigroup

class InvariantSemigroup[T, U] extends Semigroup[U]

Linear Supertypes
Semigroup[U], AdditiveSemigroup[U], cats.kernel.Semigroup[U], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InvariantSemigroup
  2. Semigroup
  3. AdditiveSemigroup
  4. Semigroup
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InvariantSemigroup(forward: (T) => U, reverse: (U) => T)(implicit semigroup: Semigroup[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def additive: algebra.Semigroup[U]
    Definition Classes
    Semigroup → AdditiveSemigroup
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def combine(l: U, r: U): U
    Definition Classes
    Semigroup → Semigroup
  8. def combineAllOption(iter: TraversableOnce[U]): Option[U]
    Definition Classes
    Semigroup → Semigroup
  9. def combineN(a: U, n: Int): U
    Definition Classes
    Semigroup
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(that: Any): Boolean
    Definition Classes
    InvariantSemigroup → AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. val forward: (T) => U
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val hashCode: Int
    Definition Classes
    InvariantSemigroup → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def plus(l: U, r: U): U
    Definition Classes
    InvariantSemigroup → AdditiveSemigroup
  21. def positiveSumN(a: U, n: Int): U
    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  22. def repeatedCombineN(a: U, n: Int): U
    Attributes
    protected[this]
    Definition Classes
    Semigroup
  23. val reverse: (U) => T
  24. implicit val semigroup: Semigroup[T]
  25. def sumN(a: U, n: Int): U
    Definition Classes
    AdditiveSemigroup
  26. def sumOption(iter: TraversableOnce[U]): Option[U]

    Returns an instance of T calculated by summing all instances in iter in one pass.

    Returns an instance of T calculated by summing all instances in iter in one pass. Returns None if iter is empty, else Some[T].

    iter

    instances of T to be combined

    returns

    None if iter is empty, else an option value containing the summed T

    Definition Classes
    InvariantSemigroupSemigroup
    Note

    Override if there is a faster way to compute this sum than iter.reduceLeftOption using plus.

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def trySum(iter: TraversableOnce[U]): Option[U]
    Definition Classes
    Semigroup → AdditiveSemigroup
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Semigroup[U]

Inherited from AdditiveSemigroup[U]

Inherited from cats.kernel.Semigroup[U]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped