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