class OptionMonoid[A] extends Monoid[Option[A]] with Serializable
- Annotations
- @SerialVersionUID()
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- OptionMonoid
- Serializable
- Serializable
- Monoid
- Semigroup
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
combine(as: TraversableOnce[Option[A]]): Option[A]
Given a sequence of
as, combine them using the monoid and return the total.Given a sequence of
as, combine them using the monoid and return the total.- Definition Classes
- Monoid
-
def
combineOption(as: TraversableOnce[Option[A]]): Option[Option[A]]
Given a sequence of
as, combine them using the semigroup and return the total.Given a sequence of
as, combine them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- Semigroup
-
def
combinen(a: Option[A], n: Int): Option[A]
Return
acombined with itselfntimes. -
def
combinenAboveOne(a: Option[A], n: Int): Option[A]
- Attributes
- protected
- Definition Classes
- Semigroup
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
id: Option[A]
Return the identity element for this monoid.
Return the identity element for this monoid.
- Definition Classes
- OptionMonoid → Monoid
-
def
isId(a: Option[A])(implicit ev: Eq[Option[A]]): Boolean
Tests if
ais the identity.Tests if
ais the identity.- Definition Classes
- Monoid
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
op(x: Option[A], y: Option[A]): Option[A]
- Definition Classes
- OptionMonoid → Semigroup
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )