本参考资料用于Processing 3.0+。 如果你使用的是前一版本，请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.
|描述|| A HashMap stores a collection of objects, each referenced by a key. This is similar to an Array, only instead of accessing elements with a numeric index, a String is used. (If you are familiar with associative arrays from other languages, this is the same idea.) The above example covers basic use, but there’s a more extensive example included with the Processing examples. In addition, for simple pairings of Strings and integers, Strings andfloats, or Strings and Strings, you can now use the simpler IntDict, FloatDict, and StringDict classes.
For a list of the numerous HashMap features, please read the Java reference description.
HashMap<Key, Value>() HashMap<Key, Value>(initialCapacity) HashMap<Key, Value>(initialCapacity, loadFactor) HashMap<Key, Value>(m)
Updated on October 2, 2018 05:02:16pm EDT