mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
add hasKey() methods
This commit is contained in:
@@ -235,6 +235,11 @@ public class IntDict {
|
||||
}
|
||||
|
||||
|
||||
public boolean hasKey(String key) {
|
||||
return index(key) != -1;
|
||||
}
|
||||
|
||||
|
||||
/** Increase the value of a specific key by 1. */
|
||||
public void increment(String key) {
|
||||
add(key, 1);
|
||||
|
||||
Reference in New Issue
Block a user