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