class EventuallyMonoid[E, O] extends EventuallySemigroup[E, O] with Monoid[Either[E, O]]
- See also
EventuallySemigroup
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- EventuallyMonoid
- Monoid
- AdditiveMonoid
- Monoid
- EventuallySemigroup
- Semigroup
- AdditiveSemigroup
- Semigroup
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def additive: algebra.Monoid[Either[E, O]]
These are from algebra.Monoid
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertNotZero(v: Either[E, O]): Unit
- Definition Classes
- Monoid
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def combine(l: Either[E, O], r: Either[E, O]): Either[E, O]
- Definition Classes
- Semigroup → Semigroup
- def combineAll(t: TraversableOnce[Either[E, O]]): Either[E, O]
- Definition Classes
- Monoid → Monoid
- def combineAllOption(as: IterableOnce[Either[E, O]]): Option[Either[E, O]]
- Definition Classes
- Monoid → Semigroup
- def combineN(a: Either[E, O], n: Int): Either[E, O]
- Definition Classes
- Monoid → Semigroup
- def conditionallyConvert(o: O): Either[E, O]
- Attributes
- protected
- Definition Classes
- EventuallySemigroup
- def empty: Either[E, O]
- Definition Classes
- Monoid → Monoid
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEmpty(a: Either[E, O])(implicit ev: Eq[Either[E, O]]): Boolean
- Definition Classes
- Monoid
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNonZero(v: Either[E, O]): Boolean
- Definition Classes
- Monoid
- def isZero(a: Either[E, O])(implicit ev: Eq[Either[E, O]]): Boolean
- Definition Classes
- AdditiveMonoid
- def left(e: E): Either[E, O]
- Attributes
- protected
- Definition Classes
- EventuallySemigroup
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonZeroOption(v: Either[E, O]): Option[Either[E, O]]
- Definition Classes
- Monoid
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def plus(x: Either[E, O], y: Either[E, O]): Either[E, O]
- Definition Classes
- EventuallySemigroup → AdditiveSemigroup
- def positiveSumN(a: Either[E, O], n: Int): Either[E, O]
- Attributes
- protected[this]
- Definition Classes
- AdditiveSemigroup
- def repeatedCombineN(a: Either[E, O], n: Int): Either[E, O]
- Attributes
- protected[this]
- Definition Classes
- Semigroup
- def sum(vs: TraversableOnce[Either[E, O]]): Either[E, O]
- Definition Classes
- Monoid → AdditiveMonoid
- def sumN(a: Either[E, O], n: Int): Either[E, O]
- Definition Classes
- AdditiveMonoid → AdditiveSemigroup
- def sumOption(iter: TraversableOnce[Either[E, O]]): Option[Either[E, O]]
Returns an instance of
T
calculated by summing all instances initer
in one pass.Returns an instance of
T
calculated by summing all instances initer
in one pass. ReturnsNone
ifiter
is empty, elseSome[T]
.- iter
instances of
T
to be combined- returns
None
ifiter
is empty, else an option value containing the summedT
- Definition Classes
- EventuallySemigroup → Semigroup
- Note
Override if there is a faster way to compute this sum than
iter.reduceLeftOption
using plus.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trySum(as: TraversableOnce[Either[E, O]]): Option[Either[E, O]]
- Definition Classes
- AdditiveMonoid → AdditiveSemigroup
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zero: Right[E, O]
- Definition Classes
- EventuallyMonoid → AdditiveMonoid