com.twitter.algebird

InvariantSemigroup

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

Linear Supertypes
Semigroup[U], AdditiveSemigroup[U], cats.kernel.Semigroup[U], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InvariantSemigroup
  2. Semigroup
  3. AdditiveSemigroup
  4. Semigroup
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def additive: algebra.Semigroup[U]

    Definition Classes
    Semigroup → AdditiveSemigroup
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def combine(l: U, r: U): U

    Definition Classes
    Semigroup → Semigroup
  10. def combineAllOption(iter: TraversableOnce[U]): Option[U]

    Definition Classes
    Semigroup → Semigroup
  11. def combineN(a: U, n: Int): U

    Definition Classes
    Semigroup
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(that: Any): Boolean

    Definition Classes
    InvariantSemigroup → AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val forward: (T) ⇒ U

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. val hashCode: Int

    Definition Classes
    InvariantSemigroup → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def plus(l: U, r: U): U

    Definition Classes
    InvariantSemigroup → AdditiveSemigroup
  23. def positiveSumN(a: U, n: Int): U

    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  24. def repeatedCombineN(a: U, n: Int): U

    Attributes
    protected[this]
    Definition Classes
    Semigroup
  25. val reverse: (U) ⇒ T

  26. implicit val semigroup: Semigroup[T]

  27. def sumN(a: U, n: Int): U

    Definition Classes
    AdditiveSemigroup
  28. 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.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def trySum(iter: TraversableOnce[U]): Option[U]

    Definition Classes
    Semigroup → AdditiveSemigroup
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Semigroup[U]

Inherited from AdditiveSemigroup[U]

Inherited from cats.kernel.Semigroup[U]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped