FastBitSet

This commit is contained in:
Sotr
2018-07-29 03:04:37 +08:00
parent b8879db641
commit 0690cb1c9f
3 changed files with 2116 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ public class RegistryID<K> implements Registry {
this.b = (K[]) (new Object[i]);
this.c = new int[i];
this.d = (K[]) (new Object[i]);
this.usedIds = new java.util.BitSet(); // Akarin - 1.13 backport
this.usedIds = new io.akarin.api.internal.utils.FastBitSet(); // Akarin - 1.13 backport
}
public int getId(@Nullable K k0) {