MinDoubleHeapOrdering

net.walend.disentangle.heap.MinDoubleHeapOrdering$
object MinDoubleHeapOrdering extends HeapOrdering[Double]

A heap ordering that puts the least Double on top.

If you imitate this code, observe that lteq and tryCompare find the inverse of what you'd have for MaxDoubleHeapOrdering.

Attributes

Graph
Supertypes
trait HeapOrdering[Double]
trait PartialOrdering[Double]
trait Equiv[Double]
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def AlwaysBottom: Double

A key that will among items on the bottom of the heap. Used primarily to add items that will eventually flow higher.

A key that will among items on the bottom of the heap. Used primarily to add items that will eventually flow higher.

Attributes

def AlwaysTop: Double

Minimum value for the DoubleHeap

Minimum value for the DoubleHeap

Attributes

def checkKey(key: Double): Unit

Use require to check the key.

Use require to check the key.

Attributes

Throws:
IllegalArgumentException

if the key is unusable

def lteq(x: Double, y: Double): Boolean
def tryCompare(x: Double, y: Double): Option[Int]

Attributes

Returns:

Some negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second, or None if they can't be compared

Inherited methods

def equiv(x: Double, y: Double): Boolean

Attributes

Inherited from:
PartialOrdering
def gt(x: Double, y: Double): Boolean

Attributes

Inherited from:
PartialOrdering
def gteq(x: Double, y: Double): Boolean

Attributes

Inherited from:
PartialOrdering
def lt(x: Double, y: Double): Boolean

Attributes

Inherited from:
PartialOrdering
def reverse: PartialOrdering[T]

Attributes

Inherited from:
PartialOrdering