BitSetSemilattice

class BitSetSemilattice extends BoundedSemilattice[BitSet]
trait BoundedSemilattice[BitSet]
trait CommutativeMonoid[BitSet]
trait Monoid[BitSet]
trait Semilattice[BitSet]
trait CommutativeSemigroup[BitSet]
trait Band[BitSet]
trait Semigroup[BitSet]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def combine(x: BitSet, y: BitSet): BitSet
def empty: BitSet

Inherited methods

def asJoinPartialOrder(ev: Eq[BitSet]): PartialOrder[BitSet]

Given Eq[A], return a PartialOrder[A] using the combine operator to determine the partial ordering. This method assumes combine functions as join (that is, as an upper bound).

Given Eq[A], return a PartialOrder[A] using the combine operator to determine the partial ordering. This method assumes combine functions as join (that is, as an upper bound).

This method returns:

0.0 if x = y -1.0 if y = combine(x, y) 1.0 if x = combine(x, y) NaN otherwise

Inherited from
Semilattice
def asMeetPartialOrder(ev: Eq[BitSet]): PartialOrder[BitSet]

Given Eq[A], return a PartialOrder[A] using the combine operator to determine the partial ordering. This method assumes combine functions as meet (that is, as a lower bound).

Given Eq[A], return a PartialOrder[A] using the combine operator to determine the partial ordering. This method assumes combine functions as meet (that is, as a lower bound).

This method returns:

0.0 if x = y -1.0 if x = combine(x, y) 1.0 if y = combine(x, y) NaN otherwise

Inherited from
Semilattice
def combineAll(as: IterableOnce[BitSet]): BitSet

Given a sequence of as, sum them using the monoid and return the total.

Given a sequence of as, sum them using the monoid and return the total.

Example:

scala> import cats.kernel.instances.string._

scala> Monoid[String].combineAll(List("One ", "Two ", "Three"))
res0: String = One Two Three

scala> Monoid[String].combineAll(List.empty)
res1: String = ""
Inherited from
Monoid
override def combineAllOption(as: IterableOnce[BitSet]): Option[BitSet]
Definition Classes
Inherited from
Monoid
override def combineN(a: BitSet, n: Int): BitSet
Definition Classes
Inherited from
BoundedSemilattice
override def intercalate(middle: BitSet): CommutativeSemigroup[BitSet]
Definition Classes
Inherited from
CommutativeSemigroup
def isEmpty(a: BitSet)(ev: Eq[BitSet]): Boolean

Tests if a is the identity.

Tests if a is the identity.

Example:

scala> import cats.kernel.instances.string._

scala> Monoid[String].isEmpty("")
res0: Boolean = true

scala> Monoid[String].isEmpty("something")
res1: Boolean = false
Inherited from
Monoid
override def reverse: CommutativeMonoid[BitSet]