NodeByF

class NodeByF : Comparator<Node>

Comparator for nodes based on their f-values (in reference to the A* algorithm).

Constructors

NodeByF
Link copied to clipboard
fun NodeByF()
Creates a comparator for nodes based on their f-values (in reference to the A* algorithm).

Functions

compare
Link copied to clipboard
open override fun compare(o1: Node?, o2: Node?): Int
Compares its two arguments for order.

Inherited functions

reversed
Link copied to clipboard
open fun reversed(): Comparator<Node>
thenComparing
Link copied to clipboard
open fun thenComparing(p0: Comparator<in Node>): Comparator<Node>
open fun <U : Comparable<U>> thenComparing(p0: Function<in Node, out U>): Comparator<Node>
open fun <U : Any> thenComparing(p0: Function<in Node, out U>, p1: Comparator<in U>): Comparator<Node>
thenComparingDouble
Link copied to clipboard
open fun thenComparingDouble(p0: ToDoubleFunction<in Node>): Comparator<Node>
thenComparingInt
Link copied to clipboard
open fun thenComparingInt(p0: ToIntFunction<in Node>): Comparator<Node>
thenComparingLong
Link copied to clipboard
open fun thenComparingLong(p0: ToLongFunction<in Node>): Comparator<Node>