Class

cats.kernel.instances

DurationOrder

Related Doc: package instances

Permalink

class DurationOrder extends Order[Duration] with Hash[Duration] with DurationBounded

This ordering is valid for all defined durations.

The value Duration.Undefined breaks our laws, because undefined values are not equal to themselves.

Self Type
DurationOrder
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DurationOrder
  2. DurationBounded
  3. UpperBounded
  4. LowerBounded
  5. Hash
  6. Order
  7. PartialOrder
  8. Eq
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DurationOrder()

    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 compare(x: Duration, y: Duration): Int

    Permalink

    Result of comparing x with y.

    Result of comparing x with y. Returns an Int whose sign is: - negative iff x < y - zero iff x = y - positive iff x > y

    Definition Classes
    DurationOrderOrder
  7. def comparison(x: Duration, y: Duration): Comparison

    Permalink

    Like compare, but returns a cats.kernel.Comparison instead of an Int.

    Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

    Definition Classes
    Order
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def eqv(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x = y, false otherwise.

    Returns true if x = y, false otherwise.

    Definition Classes
    DurationOrderOrderPartialOrderEq
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def gt(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x > y, false otherwise.

    Returns true if x > y, false otherwise.

    Definition Classes
    DurationOrderOrderPartialOrder
  14. def gteqv(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x >= y, false otherwise.

    Returns true if x >= y, false otherwise.

    Definition Classes
    DurationOrderOrderPartialOrder
  15. def hash(x: Duration): Int

    Permalink

    Returns the hash code of the given object under this hashing scheme.

    Returns the hash code of the given object under this hashing scheme.

    Definition Classes
    DurationOrderHash
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lt(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x < y, false otherwise.

    Returns true if x < y, false otherwise.

    Definition Classes
    DurationOrderOrderPartialOrder
  19. def lteqv(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x <= y, false otherwise.

    Returns true if x <= y, false otherwise.

    Definition Classes
    DurationOrderOrderPartialOrder
  20. def max(x: Duration, y: Duration): Duration

    Permalink

    If x > y, return x, else return y.

    If x > y, return x, else return y.

    Definition Classes
    DurationOrderOrder
  21. def maxBound: Duration

    Permalink

    Returns the upper limit of a type.

    Returns the upper limit of a type.

    Definition Classes
    DurationBoundedUpperBounded
  22. def min(x: Duration, y: Duration): Duration

    Permalink

    If x < y, return x, else return y.

    If x < y, return x, else return y.

    Definition Classes
    DurationOrderOrder
  23. def minBound: Duration

    Permalink

    Returns the lower limit of a type.

    Returns the lower limit of a type.

    Definition Classes
    DurationBoundedLowerBounded
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def neqv(x: Duration, y: Duration): Boolean

    Permalink

    Returns true if x != y, false otherwise.

    Returns true if x != y, false otherwise.

    Note: this default implementation provided by Order is the same as the one defined in Eq, but for purposes of binary compatibility, the override in Order has not yet been removed. See this discussion.

    Definition Classes
    DurationOrderOrderEq
  26. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  28. def partialCompare(x: Duration, y: Duration): Double

    Permalink

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x = y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  29. def partialComparison(x: Duration, y: Duration): Option[Comparison]

    Permalink

    Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

    Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

    Definition Classes
    PartialOrder
  30. val partialOrder: PartialOrder[Duration]

    Permalink
    Definition Classes
    DurationOrderUpperBoundedLowerBounded
  31. def pmax(x: Duration, y: Duration): Option[Duration]

    Permalink

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Definition Classes
    PartialOrder
  32. def pmin(x: Duration, y: Duration): Option[Duration]

    Permalink

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Definition Classes
    PartialOrder
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toOrdering: Ordering[Duration]

    Permalink

    Convert a Order[A] to a scala.math.Ordering[A] instance.

    Convert a Order[A] to a scala.math.Ordering[A] instance.

    Definition Classes
    Order
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def tryCompare(x: Duration, y: Duration): Option[Int]

    Permalink

    Result of comparing x with y.

    Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iff x < y - zero iff x = y - positive iff x > y

    Definition Classes
    PartialOrder
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DurationBounded

Inherited from UpperBounded[Duration]

Inherited from LowerBounded[Duration]

Inherited from Hash[Duration]

Inherited from Order[Duration]

Inherited from PartialOrder[Duration]

Inherited from Eq[Duration]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped