mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
bug fixing on Dict and List classes, add Iterable constructor
This commit is contained in:
@@ -93,6 +93,9 @@ public class IntDict {
|
||||
this.keys = keys;
|
||||
this.values = values;
|
||||
count = keys.length;
|
||||
for (int i = 0; i < count; i++) {
|
||||
indices.put(keys[i], i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +107,7 @@ public class IntDict {
|
||||
/** Remove all entries. */
|
||||
public void clear() {
|
||||
count = 0;
|
||||
indices = new HashMap<String, Integer>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user