cats.kernel.instances

DurationGroup

class DurationGroup extends CommutativeGroup[Duration]

This group models addition, but has a few problematic edge cases.

  1. finite values can overflow, throwing an exception 2. inf + (-inf) = undefined, not zero 3. undefined + zero = undefined
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DurationGroup
  2. CommutativeGroup
  3. CommutativeMonoid
  4. CommutativeSemigroup
  5. Group
  6. Monoid
  7. Semigroup
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DurationGroup()

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def combine(x: Duration, y: Duration): Duration

    Associative operation which combines two values.

    Associative operation which combines two values.

    Definition Classes
    DurationGroupSemigroup
  9. def combineAll(as: TraversableOnce[Duration]): Duration

    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.

    Definition Classes
    Monoid
  10. def combineAllOption(as: TraversableOnce[Duration]): Option[Duration]

    Given a sequence of as, combine them and return the total.

    Given a sequence of as, combine them and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MonoidSemigroup
  11. def combineN(a: Duration, n: Int): Duration

    Return a appended to itself n times.

    Return a appended to itself n times. If n is negative, then this returns inverse(a) appended to itself n times.

    Definition Classes
    GroupMonoidSemigroup
  12. def empty: Duration

    Return the identity element for this monoid.

    Return the identity element for this monoid.

    Definition Classes
    DurationGroupMonoid
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def inverse(x: Duration): Duration

    Find the inverse of a.

    Find the inverse of a.

    combine(a, inverse(a)) = combine(inverse(a), a) = empty.

    Definition Classes
    DurationGroupGroup
  19. def isEmpty(a: Duration)(implicit ev: Eq[Duration]): Boolean

    Tests if a is the identity.

    Tests if a is the identity.

    Definition Classes
    Monoid
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  24. def remove(x: Duration, y: Duration): Duration

    Remove the element b from a.

    Remove the element b from a.

    Equivalent to combine(a, inverse(b))

    Definition Classes
    DurationGroupGroup
  25. def repeatedCombineN(a: Duration, n: Int): Duration

    Return a combined with itself more than once.

    Return a combined with itself more than once.

    Attributes
    protected[this]
    Definition Classes
    Semigroup
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommutativeGroup[Duration]

Inherited from CommutativeMonoid[Duration]

Inherited from CommutativeSemigroup[Duration]

Inherited from Group[Duration]

Inherited from Monoid[Duration]

Inherited from Semigroup[Duration]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped