class FiniteDurationOrder extends Order[FiniteDuration] with Hash[FiniteDuration] with FiniteDurationBounded
- Alphabetic
- By Inheritance
- FiniteDurationOrder
- FiniteDurationBounded
- UpperBounded
- LowerBounded
- Hash
- Order
- PartialOrder
- Eq
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FiniteDurationOrder()
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
compare(x: FiniteDuration, y: FiniteDuration): Int
Result of comparing
x
withy
.Result of comparing
x
withy
. Returns an Int whose sign is: - negative iffx < y
- zero iffx = y
- positive iffx > y
- Definition Classes
- FiniteDurationOrder → Order
-
def
comparison(x: FiniteDuration, y: FiniteDuration): Comparison
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eqv(x: FiniteDuration, y: FiniteDuration): Boolean
Returns true if
x
=y
, false otherwise.Returns true if
x
=y
, false otherwise.- Definition Classes
- FiniteDurationOrder → Order → PartialOrder → Eq
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
gt(x: FiniteDuration, y: FiniteDuration): Boolean
Returns true if
x
>y
, false otherwise.Returns true if
x
>y
, false otherwise.- Definition Classes
- FiniteDurationOrder → Order → PartialOrder
-
def
gteqv(x: FiniteDuration, y: FiniteDuration): Boolean
Returns true if
x
>=y
, false otherwise.Returns true if
x
>=y
, false otherwise.- Definition Classes
- FiniteDurationOrder → Order → PartialOrder
-
def
hash(x: FiniteDuration): Int
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
- FiniteDurationOrder → Hash
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lt(x: FiniteDuration, y: FiniteDuration): Boolean
Returns true if
x
<y
, false otherwise.Returns true if
x
<y
, false otherwise.- Definition Classes
- FiniteDurationOrder → Order → PartialOrder
-
def
lteqv(x: FiniteDuration, y: FiniteDuration): Boolean
Returns true if
x
<=y
, false otherwise.Returns true if
x
<=y
, false otherwise.- Definition Classes
- FiniteDurationOrder → Order → PartialOrder
-
def
max(x: FiniteDuration, y: FiniteDuration): FiniteDuration
If x > y, return x, else return y.
If x > y, return x, else return y.
- Definition Classes
- FiniteDurationOrder → Order
-
def
maxBound: FiniteDuration
Returns the upper limit of a type.
Returns the upper limit of a type.
- Definition Classes
- FiniteDurationBounded → UpperBounded
-
def
min(x: FiniteDuration, y: FiniteDuration): FiniteDuration
If x < y, return x, else return y.
If x < y, return x, else return y.
- Definition Classes
- FiniteDurationOrder → Order
-
def
minBound: FiniteDuration
Returns the lower limit of a type.
Returns the lower limit of a type.
- Definition Classes
- FiniteDurationBounded → LowerBounded
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
neqv(x: FiniteDuration, y: FiniteDuration): Boolean
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
- FiniteDurationOrder → Order → Eq
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
partialCompare(x: FiniteDuration, y: FiniteDuration): Double
Result of comparing
x
withy
.Result of comparing
x
withy
. 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
- Order → PartialOrder
- negative iff
-
def
partialComparison(x: FiniteDuration, y: FiniteDuration): Option[Comparison]
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
-
val
partialOrder: PartialOrder[FiniteDuration]
- Definition Classes
- FiniteDurationOrder → UpperBounded → LowerBounded
-
def
pmax(x: FiniteDuration, y: FiniteDuration): Option[FiniteDuration]
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
-
def
pmin(x: FiniteDuration, y: FiniteDuration): Option[FiniteDuration]
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toOrdering: Ordering[FiniteDuration]
Convert a
Order[A]
to ascala.math.Ordering[A]
instance.Convert a
Order[A]
to ascala.math.Ordering[A]
instance.- Definition Classes
- Order
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryCompare(x: FiniteDuration, y: FiniteDuration): Option[Int]
Result of comparing
x
withy
.Result of comparing
x
withy
. 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
- negative iff
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )