toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.queue.priority.comparable
/
ComparablePriorityQueue
Comparable
Priority
Queue
class
ComparablePriorityQueue
<
T
:
Comparable
<
T
>
>
:
AbstractPriorityQueue
<
T
>
Members
Members & Extensions
Constructors
Comparable
Priority
Queue
Link copied to clipboard
constructor
(
)
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
(
)