mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
add setIndex() method
This commit is contained in:
@@ -348,6 +348,16 @@ public class IntDict {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void setIndex(int index, String key, int value) {
|
||||
if (index < 0 || index >= count) {
|
||||
throw new ArrayIndexOutOfBoundsException(index);
|
||||
}
|
||||
keys[index] = key;
|
||||
values[index] = value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @webref intdict:method
|
||||
* @brief Check if a key is a part of the data structure
|
||||
|
||||
Reference in New Issue
Block a user