Packages

class AnyOrdering[N] extends Ordering[N]

Ordering for Any with the following rules: numerical > string > any other reference type. If a reference type is not a subclass of Ordered, it will be ordered according to its toString value.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnyOrdering
  2. Ordering
  3. PartialOrdering
  4. Equiv
  5. Serializable
  6. Comparator
  7. AnyRef
  8. Any
Implicitly
  1. by ChainingOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AnyOrdering()

Type Members

  1. sealed case class FloatType(value: RichDouble) extends Type with Product with Serializable
    Attributes
    protected
  2. sealed case class IntegerType(value: RichLong) extends Type with Product with Serializable
    Attributes
    protected
  3. class OrderingOps extends AnyRef
    Definition Classes
    Ordering
  4. sealed case class RefType(value: AnyRef) extends Type with Product with Serializable
    Attributes
    protected
  5. sealed case class StringType(value: WrappedString) extends Type with Product with Serializable
    Attributes
    protected
  6. sealed trait Type extends AnyRef
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toany2stringadd[AnyOrdering[N]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (AnyOrdering[N], B)
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toArrowAssoc[AnyOrdering[N]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def compare(a: N, b: N): Int
    Definition Classes
    AnyOrdering → Ordering → Comparator
  9. def ensuring(cond: (AnyOrdering[N]) => Boolean, msg: => Any): AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toEnsuring[AnyOrdering[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (AnyOrdering[N]) => Boolean): AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toEnsuring[AnyOrdering[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: => Any): AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toEnsuring[AnyOrdering[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toEnsuring[AnyOrdering[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def equiv(x: N, y: N): Boolean
    Definition Classes
    Ordering → PartialOrdering → Equiv
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def gt(x: N, y: N): Boolean
    Definition Classes
    Ordering → PartialOrdering
  18. def gteq(x: N, y: N): Boolean
    Definition Classes
    Ordering → PartialOrdering
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isReverseOf(other: Ordering[_]): Boolean
    Definition Classes
    Ordering
  22. def lt(x: N, y: N): Boolean
    Definition Classes
    Ordering → PartialOrdering
  23. def lteq(x: N, y: N): Boolean
    Definition Classes
    Ordering → PartialOrdering
  24. def max[U <: N](x: U, y: U): U
    Definition Classes
    Ordering
  25. def min[U <: N](x: U, y: U): U
    Definition Classes
    Ordering
  26. implicit def mkOrderingOps(lhs: N): OrderingOps
    Definition Classes
    Ordering
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def on[U](f: (U) => N): Ordering[U]
    Definition Classes
    Ordering
  31. def orElse(other: Ordering[N]): Ordering[N]
    Definition Classes
    Ordering
  32. def orElseBy[S](f: (N) => S)(implicit ord: Ordering[S]): Ordering[N]
    Definition Classes
    Ordering
  33. def pipe[B](f: (AnyOrdering[N]) => B): B
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toChainingOps[AnyOrdering[N]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  34. def reverse: Ordering[N]
    Definition Classes
    Ordering → PartialOrdering
  35. def reversed(): Comparator[N]
    Definition Classes
    Comparator
  36. val self: AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toChainingOps[AnyOrdering[N]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def tap[U](f: (AnyOrdering[N]) => U): AnyOrdering[N]
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toChainingOps[AnyOrdering[N]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  39. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: Function[_ >: N <: AnyRef, _ <: U]): Comparator[N]
    Definition Classes
    Comparator
  40. def thenComparing[U <: AnyRef](arg0: Function[_ >: N <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[N]
    Definition Classes
    Comparator
  41. def thenComparing(arg0: Comparator[_ >: N <: AnyRef]): Comparator[N]
    Definition Classes
    Comparator
  42. def thenComparingDouble(arg0: ToDoubleFunction[_ >: N <: AnyRef]): Comparator[N]
    Definition Classes
    Comparator
  43. def thenComparingInt(arg0: ToIntFunction[_ >: N <: AnyRef]): Comparator[N]
    Definition Classes
    Comparator
  44. def thenComparingLong(arg0: ToLongFunction[_ >: N <: AnyRef]): Comparator[N]
    Definition Classes
    Comparator
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def tryCompare(x: N, y: N): Some[Int]
    Definition Classes
    Ordering → PartialOrdering
  47. def typeOf(x: Any): Product with Type with Serializable
    Attributes
    protected
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toStringFormat[AnyOrdering[N]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (AnyOrdering[N], B)
    Implicit
    This member is added by an implicit conversion from AnyOrdering[N] toArrowAssoc[AnyOrdering[N]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Ordering[N]

Inherited from PartialOrdering[N]

Inherited from Equiv[N]

Inherited from Serializable

Inherited from Comparator[N]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion ChainingOps fromAnyOrdering[N] to ChainingOps[AnyOrdering[N]]

Inherited by implicit conversion any2stringadd fromAnyOrdering[N] to any2stringadd[AnyOrdering[N]]

Inherited by implicit conversion StringFormat fromAnyOrdering[N] to StringFormat[AnyOrdering[N]]

Inherited by implicit conversion Ensuring fromAnyOrdering[N] to Ensuring[AnyOrdering[N]]

Inherited by implicit conversion ArrowAssoc fromAnyOrdering[N] to ArrowAssoc[AnyOrdering[N]]

Ungrouped