Added Singletons & Empty variants of Collections

This commit is contained in:
Speiger committed 2021-04-24 16:48:36 +02:00
1 parent 0b11c3929a
commit 06752fe30c
10 files changed
+804 -11

No files matched your search

@@ -268,7 +268,8 @@ public class ARRAY_FIFO_QUEUE KEY_GENERIC_TYPE implements PRIORITY_DEQUEUE KEY_G
@Override
public KEY_TYPE NEXT() {
KEY_TYPE value = array[index];
removeIndex(index++);
removeIndex(index);
index = ++index % array.length;
return value;
}
}