class IntOrder extends Order[Int] with Hash[Int] with IntBounded with IntEnumerable
- Alphabetic
- By Inheritance
- IntOrder
- IntEnumerable
- BoundedEnumerable
- PartialNextLowerBounded
- PartialPreviousUpperBounded
- PartialNext
- PartialPrevious
- IntBounded
- UpperBounded
- LowerBounded
- Hash
- Order
- PartialOrder
- Eq
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IntOrder()
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(classOf[java.lang.CloneNotSupportedException]) @native()
- def compare(x: Int, y: Int): Int
Result of comparing
x
withy
. - def comparison(x: Int, y: Int): 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
- def cycleNext(a: Int): Int
- Definition Classes
- BoundedEnumerable
- def cyclePrevious(a: Int): Int
- Definition Classes
- BoundedEnumerable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eqv(x: Int, y: Int): Boolean
Returns true if
x
=y
, false otherwise.Returns true if
x
=y
, false otherwise.- Definition Classes
- IntOrder → Order → PartialOrder → Eq
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gt(x: Int, y: Int): Boolean
Returns true if
x
>y
, false otherwise.Returns true if
x
>y
, false otherwise.- Definition Classes
- IntOrder → Order → PartialOrder
- def gteqv(x: Int, y: Int): Boolean
Returns true if
x
>=y
, false otherwise.Returns true if
x
>=y
, false otherwise.- Definition Classes
- IntOrder → Order → PartialOrder
- def hash(x: Int): Int
Returns the hash code of the given object under this hashing scheme.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lt(x: Int, y: Int): Boolean
Returns true if
x
<y
, false otherwise.Returns true if
x
<y
, false otherwise.- Definition Classes
- IntOrder → Order → PartialOrder
- def lteqv(x: Int, y: Int): Boolean
Returns true if
x
<=y
, false otherwise.Returns true if
x
<=y
, false otherwise.- Definition Classes
- IntOrder → Order → PartialOrder
- def max(x: Int, y: Int): Int
If x > y, return x, else return y.
- def maxBound: Int
Returns the upper limit of a type.
Returns the upper limit of a type.
- Definition Classes
- IntBounded → UpperBounded
- def membersAscending: LazyList[Int]
Enumerate the members in ascending order.
Enumerate the members in ascending order.
- Definition Classes
- PartialNextLowerBounded
- def membersDescending: LazyList[Int]
Enumerate the members in descending order.
Enumerate the members in descending order.
- Definition Classes
- PartialPreviousUpperBounded
- def min(x: Int, y: Int): Int
If x < y, return x, else return y.
- def minBound: Int
Returns the lower limit of a type.
Returns the lower limit of a type.
- Definition Classes
- IntBounded → LowerBounded
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def neqv(x: Int, y: Int): Boolean
Returns true if
x
!=y
, false otherwise. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val order: Order[Int]
- Definition Classes
- IntOrder → BoundedEnumerable
- def partialCompare(x: Int, y: Int): 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: Int, y: Int): 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
- def partialNext(a: Int): Option[Int]
- Definition Classes
- IntEnumerable → PartialNext
- def partialOrder: PartialOrder[Int]
- Definition Classes
- BoundedEnumerable → LowerBounded → UpperBounded → PartialNext → PartialPrevious
- def partialPrevious(a: Int): Option[Int]
- Definition Classes
- IntEnumerable → PartialPrevious
- def pmax(x: Int, y: Int): Option[Int]
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: Int, y: Int): Option[Int]
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[Int]
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: Int, y: Int): 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()