Added Singletons & Empty variants of Collections

This commit is contained in:
2021-04-24 16:48:36 +02:00
parent 0b11c3929a
commit 06752fe30c
10 changed files with 804 additions and 11 deletions
@@ -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;
}
}