openrndr
Toggle table of contents
0.4.5-dev.17.uncommitted+81afe70
common
js
jvm
Platform filter
common
js
jvm
Switch theme
Search in API
openrndr
openrndr-utils
/
org.openrndr.collections
/
PriorityQueue
Priority
Queue
class
PriorityQueue
<
Key
>
:
Iterable
<
Key
>
(
source
)
Members
Members & Extensions
Constructors
Priority
Queue
Link copied to clipboard
constructor
(
initCapacity
:
Int
)
constructor
(
)
constructor
(
comparator
:
Comparator
<
Key
>
?
)
constructor
(
initCapacity
:
Int
,
comparator
:
Comparator
<
Key
>
?
)
constructor
(
keys
:
Array
<
Key
>
)
Types
Heap
Iterator
Link copied to clipboard
class
HeapIterator
<
out
Key
>
(
comparator
:
Comparator
<
Key
>
?
,
size
:
Int
,
n
:
Int
,
pq
:
Array
<
Key
?
>
)
:
Iterator
<
Key
>
Functions
add
Link copied to clipboard
fun
add
(
x
:
Key
)
:
PriorityQueue
<
Key
>
insert
Link copied to clipboard
fun
insert
(
x
:
Key
)
:
PriorityQueue
<
Key
>
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
Key
>
peek
Link copied to clipboard
fun
peek
(
)
:
Key
pflat
Map
Link copied to clipboard
common
js
jvm
expect
fun
<
T
,
R
>
Iterable
<
T
>
.
pflatMap
(
transform
:
(
T
)
->
Iterable
<
R
>
)
:
List
<
R
>
actual
fun
<
T
,
R
>
Iterable
<
T
>
.
pflatMap
(
transform
:
(
T
)
->
Iterable
<
R
>
)
:
List
<
R
>
actual
fun
<
T
,
R
>
Iterable
<
T
>
.
pflatMap
(
transform
:
(
T
)
->
Iterable
<
R
>
)
:
List
<
R
>
pfor
Each
Link copied to clipboard
common
js
jvm
expect
fun
<
T
:
Any
>
Iterable
<
T
>
.
pforEach
(
transform
:
(
T
)
->
Unit
)
actual
fun
<
T
:
Any
>
Iterable
<
T
>
.
pforEach
(
transform
:
(
T
)
->
Unit
)
actual
fun
<
T
:
Any
>
Iterable
<
T
>
.
pforEach
(
transform
:
(
T
)
->
Unit
)
pmap
Link copied to clipboard
common
js
jvm
expect
fun
<
T
,
R
>
Iterable
<
T
>
.
pmap
(
transform
:
(
T
)
->
R
)
:
List
<
R
>
actual
fun
<
T
,
R
>
Iterable
<
T
>
.
pmap
(
transform
:
(
T
)
->
R
)
:
List
<
R
>
actual
fun
<
T
,
R
>
Iterable
<
T
>
.
pmap
(
transform
:
(
T
)
->
R
)
:
List
<
R
>
pmap
Not
Null
Link copied to clipboard
common
js
jvm
expect
fun
<
T
,
R
:
Any
>
Iterable
<
T
>
.
pmapNotNull
(
transform
:
(
T
)
->
R
?
)
:
List
<
R
>
actual
fun
<
T
,
R
:
Any
>
Iterable
<
T
>
.
pmapNotNull
(
transform
:
(
T
)
->
R
?
)
:
List
<
R
>
actual
fun
<
T
,
R
:
Any
>
Iterable
<
T
>
.
pmapNotNull
(
transform
:
(
T
)
->
R
?
)
:
List
<
R
>
poll
Link copied to clipboard
fun
poll
(
)
:
Key
?
size
Link copied to clipboard
fun
size
(
)
:
Int