MCPcopy Create free account
hub / github.com/benfry/processing4 / appendUnique

Method appendUnique

core/src/processing/data/LongList.java:304–309  ·  view source on GitHub ↗

Add this value, but only if it's not already in the list.

(int value)

Source from the content-addressed store, hash-verified

302
303 /** Add this value, but only if it's not already in the list. */
304 @SuppressWarnings("unused")
305 public void appendUnique(int value) {
306 if (!hasValue(value)) {
307 append(value);
308 }
309 }
310
311
312// public void insert(int index, int value) {

Callers

nothing calls this directly

Calls 2

hasValueMethod · 0.95
appendMethod · 0.95

Tested by

no test coverage detected