cats.kernel.instances

IntOrder

class IntOrder extends Order[Int] with Hash[Int]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IntOrder
  2. Hash
  3. Order
  4. PartialOrder
  5. Eq
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntOrder()

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

    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
    IntOrderOrder
  9. 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
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def eqv(x: Int, y: Int): Boolean

    Returns true if x = y, false otherwise.

    Returns true if x = y, false otherwise.

    Definition Classes
    IntOrderOrderPartialOrderEq
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. def gt(x: Int, y: Int): Boolean

    Returns true if x > y, false otherwise.

    Returns true if x > y, false otherwise.

    Definition Classes
    IntOrderOrderPartialOrder
  16. def gteqv(x: Int, y: Int): Boolean

    Returns true if x >= y, false otherwise.

    Returns true if x >= y, false otherwise.

    Definition Classes
    IntOrderOrderPartialOrder
  17. def hash(x: Int): 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
    IntOrderHash
  18. def hashCode(): Int

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

    Definition Classes
    Any
  20. def lt(x: Int, y: Int): Boolean

    Returns true if x < y, false otherwise.

    Returns true if x < y, false otherwise.

    Definition Classes
    IntOrderOrderPartialOrder
  21. def lteqv(x: Int, y: Int): Boolean

    Returns true if x <= y, false otherwise.

    Returns true if x <= y, false otherwise.

    Definition Classes
    IntOrderOrderPartialOrder
  22. def max(x: Int, y: Int): Int

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

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

    Definition Classes
    IntOrderOrder
  23. def min(x: Int, y: Int): Int

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

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

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

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

    Returns true if x != y, false otherwise.

    Returns true if x != y, false otherwise.

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

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

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

    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: 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
  30. 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
  31. 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
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toOrdering: Ordering[Int]

    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
  34. def toString(): String

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

    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
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Hash[Int]

Inherited from Order[Int]

Inherited from PartialOrder[Int]

Inherited from Eq[Int]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped