AnyOrdering

scalax.collection.generic.AnyOrdering
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.

Attributes

Graph
Supertypes
trait Ordering[N]
trait PartialOrdering[N]
trait Equiv[N]
trait Serializable
trait Comparator[N]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

class OrderingOps(lhs: T)

Attributes

Inherited from:
Ordering
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(a: N, b: N): Int

Inherited methods

override def equiv(x: N, y: N): Boolean

Attributes

Definition Classes
Inherited from:
Ordering
override def gt(x: N, y: N): Boolean

Attributes

Definition Classes
Inherited from:
Ordering
override def gteq(x: N, y: N): Boolean

Attributes

Definition Classes
Inherited from:
Ordering

Attributes

Inherited from:
Ordering
override def lt(x: N, y: N): Boolean

Attributes

Definition Classes
Inherited from:
Ordering
override def lteq(x: N, y: N): Boolean

Attributes

Definition Classes
Inherited from:
Ordering
def max[U <: N](x: U, y: U): U

Attributes

Inherited from:
Ordering
def min[U <: N](x: U, y: U): U

Attributes

Inherited from:
Ordering
def on[U](f: U => N): Ordering[U]

Attributes

Inherited from:
Ordering
def orElse(other: Ordering[N]): Ordering[N]

Attributes

Inherited from:
Ordering
def orElseBy[S](f: N => S)(implicit ord: Ordering[S]): Ordering[N]

Attributes

Inherited from:
Ordering
override def reverse: Ordering[N]

Attributes

Definition Classes
Inherited from:
Ordering
def reversed(): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: N <: <FromJavaObject>, _ <: U]): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: N <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparing(x$0: Comparator[_ >: N <: <FromJavaObject>]): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: N <: <FromJavaObject>]): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: N <: <FromJavaObject>]): Comparator[N]

Attributes

Inherited from:
Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: N <: <FromJavaObject>]): Comparator[N]

Attributes

Inherited from:
Comparator
def tryCompare(x: N, y: N): Some[Int]

Attributes

Inherited from:
Ordering

Implicits

Inherited implicits

implicit def mkOrderingOps(lhs: N): OrderingOps

Attributes

Inherited from:
Ordering