toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.queue.priority.comparator
/
ComparatorPriorityQueue
Comparator
Priority
Queue
class
ComparatorPriorityQueue
<
T
>
(
comparator
:
Comparator
<
T
>
)
:
AbstractPriorityQueue
<
T
>
Members
Members & Extensions
Constructors
Comparator
Priority
Queue
Link copied to clipboard
constructor
(
comparator
:
Comparator
<
T
>
)
Properties
count
Link copied to clipboard
open
override
val
count
:
Int
heap
Link copied to clipboard
open
override
val
heap
:
Heap
<
T
>
is
Empty
Link copied to clipboard
open
override
val
isEmpty
:
Boolean
is
Not
Empty
Link copied to clipboard
open
val
isNotEmpty
:
Boolean
Functions
dequeue
Link copied to clipboard
open
override
fun
dequeue
(
)
:
T
?
enqueue
Link copied to clipboard
open
override
fun
enqueue
(
element
:
T
)
:
Boolean
peek
Link copied to clipboard
open
override
fun
peek
(
)
:
T
?
reverse
Link copied to clipboard
fun
<
T
>
Queue
<
T
>
.
reverse
(
)