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

Method hasValue

core/src/processing/data/IntList.java:449–460  ·  view source on GitHub ↗

@webref intlist:method @brief Check if a number is a part of the list

(int value)

Source from the content-addressed store, hash-verified

447 * @brief Check if a number is a part of the list
448 */
449 public boolean hasValue(int value) {
450// if (indexCache == null) {
451// cacheIndices();
452// }
453// return index(what) != -1;
454 for (int i = 0; i < count; i++) {
455 if (data[i] == value) {
456 return true;
457 }
458 }
459 return false;
460 }
461
462 /**
463 * @webref intlist:method

Callers 4

appendUniqueMethod · 0.95
isSpecialMethod · 0.45
LocalContributionMethod · 0.45
parseZoomMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected