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.
Used to predictably order elements when computing Graph.toString
.
- Alphabetic
- By Inheritance
- AnyOrdering
- Ordering
- PartialOrdering
- Equiv
- Serializable
- Comparator
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AnyOrdering()
Type Members
- sealed case class FloatType(value: RichDouble) extends Type with Product with Serializable
- Attributes
- protected
- sealed case class IntegerType(value: RichLong) extends Type with Product with Serializable
- Attributes
- protected
- class OrderingOps extends AnyRef
- Definition Classes
- Ordering
- sealed case class RefType(value: AnyRef) extends Type with Product with Serializable
- Attributes
- protected
- sealed case class StringType(value: WrappedString) extends Type with Product with Serializable
- Attributes
- protected
- sealed trait Type extends AnyRef
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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()
- 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() @HotSpotIntrinsicCandidate()
- def compare(a: N, b: N): Int
- Definition Classes
- AnyOrdering → Ordering → Comparator
- 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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def equiv(x: N, y: N): Boolean
- Definition Classes
- Ordering → PartialOrdering → Equiv
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def gt(x: N, y: N): Boolean
- Definition Classes
- Ordering → PartialOrdering
- def gteq(x: N, y: N): Boolean
- Definition Classes
- Ordering → PartialOrdering
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isReverseOf(other: Ordering[_]): Boolean
- Definition Classes
- Ordering
- def lt(x: N, y: N): Boolean
- Definition Classes
- Ordering → PartialOrdering
- def lteq(x: N, y: N): Boolean
- Definition Classes
- Ordering → PartialOrdering
- def max[U <: N](x: U, y: U): U
- Definition Classes
- Ordering
- def min[U <: N](x: U, y: U): U
- Definition Classes
- Ordering
- implicit def mkOrderingOps(lhs: N): OrderingOps
- Definition Classes
- Ordering
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def on[U](f: (U) => N): Ordering[U]
- Definition Classes
- Ordering
- def orElse(other: Ordering[N]): Ordering[N]
- Definition Classes
- Ordering
- def orElseBy[S](f: (N) => S)(implicit ord: Ordering[S]): Ordering[N]
- Definition Classes
- Ordering
- def reverse: Ordering[N]
- Definition Classes
- Ordering → PartialOrdering
- def reversed(): Comparator[N]
- Definition Classes
- Comparator
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: Function[_ >: N <: AnyRef, _ <: U]): Comparator[N]
- Definition Classes
- Comparator
- def thenComparing[U <: AnyRef](arg0: Function[_ >: N <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[N]
- Definition Classes
- Comparator
- def thenComparing(arg0: Comparator[_ >: N <: AnyRef]): Comparator[N]
- Definition Classes
- Comparator
- def thenComparingDouble(arg0: ToDoubleFunction[_ >: N <: AnyRef]): Comparator[N]
- Definition Classes
- Comparator
- def thenComparingInt(arg0: ToIntFunction[_ >: N <: AnyRef]): Comparator[N]
- Definition Classes
- Comparator
- def thenComparingLong(arg0: ToLongFunction[_ >: N <: AnyRef]): Comparator[N]
- Definition Classes
- Comparator
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryCompare(x: N, y: N): Some[Int]
- Definition Classes
- Ordering → PartialOrdering
- def typeOf(x: Any): Product with Type with Serializable
- Attributes
- protected
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- 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 ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- 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.
Welcome to the Graph for Scala API reference. Some suggested entry points:
AnyGraph
immutable.Graph
and its inner nodesmutable.Graph
and its inner nodes.edges
package and its subpackageshyperedges
package and its subpackages.labeled edges
packagemultilabeled edges
packagelabeled hyperedges
packagemultilabeled hyperedges
packageordered labeled hyperedges
packageordered multilabeled hyperedges
objectgeneric
package.GraphTraversal
andTraverserInnerNode
.RandomGraph
.GraphGen
.