mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
classlib: add missing constructor to PriorityQueue (#680)
This commit is contained in:
parent
a70251fe83
commit
9201d16853
|
@ -83,6 +83,10 @@ public class TPriorityQueue<E> extends TAbstractQueue<E> implements TSerializabl
|
||||||
version = 0;
|
version = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TPriorityQueue(TComparator<? super E> comparator) {
|
||||||
|
this(16, comparator);
|
||||||
|
}
|
||||||
|
|
||||||
public TPriorityQueue(int initialCapacity, TComparator<? super E> comparator) {
|
public TPriorityQueue(int initialCapacity, TComparator<? super E> comparator) {
|
||||||
if (initialCapacity < 1) {
|
if (initialCapacity < 1) {
|
||||||
throw new TIllegalArgumentException();
|
throw new TIllegalArgumentException();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user