Class/Object

it.unich.scalafix.finite

GraphOrdering

Related Docs: object GraphOrdering | package finite

Permalink

abstract class GraphOrdering[N] extends Ordering[N]

A GraphOrdering is an ordering on objects of the type N (which should be thought of as nodes of a graph), where for each object we mark whether it is an head element or not. Note that a graph ordering generally considers only a subset of the elements of type N, those returned by the toSeq method. The result of applying any method of this trait on any element which is not part of the domain is not specified.

N

the type of the ordered element.

Linear Supertypes
Ordering[N], PartialOrdering[N], Equiv[N], Serializable, Serializable, Comparator[N], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphOrdering
  2. Ordering
  3. PartialOrdering
  4. Equiv
  5. Serializable
  6. Serializable
  7. Comparator
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphOrdering()

    Permalink

Type Members

  1. class Ops extends AnyRef

    Permalink
    Definition Classes
    Ordering

Abstract Value Members

  1. abstract def compare(x: N, y: N): Int

    Permalink
    Definition Classes
    Ordering → Comparator
  2. abstract def isHead(n: N): Boolean

    Permalink

    It returns whether n is an head element.

  3. abstract def stringPrefix: String

    Permalink

    Defines the prefix of this object's toString representation.

  4. abstract def toSeq: Seq[N]

    Permalink

    Returns the elements which are part of the ordering in the correct order.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def equiv(x: N, y: N): Boolean

    Permalink
    Definition Classes
    Ordering → PartialOrdering → Equiv
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def gt(x: N, y: N): Boolean

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  12. def gteq(x: N, y: N): Boolean

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. def lt(x: N, y: N): Boolean

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  16. def lteq(x: N, y: N): Boolean

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  17. def max(x: N, y: N): N

    Permalink
    Definition Classes
    Ordering
  18. def min(x: N, y: N): N

    Permalink
    Definition Classes
    Ordering
  19. implicit def mkOrderingOps(lhs: N): Ops

    Permalink
    Definition Classes
    Ordering
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def on[U](f: (U) ⇒ N): Ordering[U]

    Permalink
    Definition Classes
    Ordering
  24. def reverse: Ordering[N]

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  25. def reversed(): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def thenComparing[U <: Comparable[_ >: U]](arg0: Function[_ >: N, _ <: U]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  28. def thenComparing[U](arg0: Function[_ >: N, _ <: U], arg1: Comparator[_ >: U]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  29. def thenComparing(arg0: Comparator[_ >: N]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  30. def thenComparingDouble(arg0: ToDoubleFunction[_ >: N]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  31. def thenComparingInt(arg0: ToIntFunction[_ >: N]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  32. def thenComparingLong(arg0: ToLongFunction[_ >: N]): Comparator[N]

    Permalink
    Definition Classes
    Comparator
  33. def toString(): String

    Permalink

    Converts a GraphOrdering into a string composed by the sequence of its elements in the correct order.

    Converts a GraphOrdering into a string composed by the sequence of its elements in the correct order. Head elements are marked with parenthesis.

    Definition Classes
    GraphOrdering → AnyRef → Any
  34. def tryCompare(x: N, y: N): Some[Int]

    Permalink
    Definition Classes
    Ordering → PartialOrdering
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ordering[N]

Inherited from PartialOrdering[N]

Inherited from Equiv[N]

Inherited from Serializable

Inherited from Serializable

Inherited from Comparator[N]

Inherited from AnyRef

Inherited from Any

Ungrouped