MCPcopy Create free account
hub / github.com/eclab/edisyn / checkAndSet

Method checkAndSet

edisyn/Synth.java:3700–3709  ·  view source on GitHub ↗

Given a preferences path X for a given synth, checks to see if "true" is stored there. If so, returns true. If not, sets "true" in that location and returns false. This can be used to do once-only things like this: if (!checkAndSet("OnceOnlyExample, getSynth

(String x, String synthName)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sproutMethod · 0.80

Calls 2

getLastXMethod · 0.95
setLastXMethod · 0.95

Tested by

no test coverage detected