test

abstract fun test(first: T, second: T): Boolean

Tests whether the given values are in the correct order.

Return

true if the current order is correct, or false if the order is incorrect.

Parameters

first

The first element to test, this appears before second in the heap.

second

The second element to test, this appears after first in the heap.