v0.7.5: fixed some rare concurrency errors with sparsearray

This commit is contained in:
Evan Debenham
2019-09-10 23:05:51 -04:00
parent 6ec6aadafc
commit 8d4bc19dc0
10 changed files with 18 additions and 14 deletions

View File

@@ -32,7 +32,11 @@ public class SparseArray<T> extends IntMap<T> {
return keys().toArray().toArray();
}
public List<T> toList() {
public T[] valueArray(){
return values().toArray().toArray();
}
public List<T> valueList() {
return Arrays.asList(values().toArray().toArray());
}
}