MCPcopy Index your code
hub / github.com/benfry/processing4 / setCategory

Method setCategory

core/src/processing/data/Table.java:4330–4336  ·  view source on GitHub ↗
(int index, String name)

Source from the content-addressed store, hash-verified

4328 }
4329
4330 void setCategory(int index, String name) {
4331 while (indexToData.size() <= index) {
4332 indexToData.add(null);
4333 }
4334 indexToData.set(index, name);
4335 dataToIndex.put(name, index);
4336 }
4337
4338 int size() {
4339 return dataToIndex.size();

Callers 1

setRowMethod · 0.80

Calls 4

setMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected