class Concurrent::Collection::RubyNonConcurrentPriorityQueue
def ordered?(x, y)
-
(Boolean)
- true if the two elements are in the correct priority order
Parameters:
-
y
(Integer
) -- the second index from which to retrieve a comparable value -
x
(Integer
) -- the first index from which to retrieve a comparable value
def ordered?(x, y) (@queue[x] <=> @queue[y]) == @comparator end