Class

cats.kernel.instances

DurationGroup

Related Doc: package instances

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DurationGroup()

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink

    Associative operation which combines two values.

    Associative operation which combines two values.

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

    Permalink

    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
  8. def combineAllOption(as: TraversableOnce[Duration]): Option[Duration]

    Permalink

    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
  9. def combineN(a: Duration, n: Int): Duration

    Permalink

    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
  10. def empty: Duration

    Permalink

    Return the identity element for this monoid.

    Return the identity element for this monoid.

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

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

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

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

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

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

    Permalink

    Find the inverse of a.

    Find the inverse of a.

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

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

    Permalink

    Tests if a is the identity.

    Tests if a is the identity.

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

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

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

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

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

    Permalink

    Remove the element b from a.

    Remove the element b from a.

    Equivalent to combine(a, inverse(b))

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

    Permalink

    Return a combined with itself more than once.

    Return a combined with itself more than once.

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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Permalink
    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