MCPcopy Index your code
hub / github.com/processing/processing / setCategory

Method setCategory

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

Source from the content-addressed store, hash-verified

4229 }
4230
4231 void setCategory(int index, String name) {
4232 while (indexToData.size() <= index) {
4233 indexToData.add(null);
4234 }
4235 indexToData.set(index, name);
4236 dataToIndex.put(name, index);
4237 }
4238
4239 int size() {
4240 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