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

Method removeEldestEntry

core/src/processing/core/PApplet.java:8482–8486  ·  view source on GitHub ↗
(Map.Entry<String, Pattern> eldest)

Source from the content-addressed store, hash-verified

8480 if (matchPatterns == null) {
8481 matchPatterns = new LinkedHashMap<>(16, 0.75f, true) {
8482 @Override
8483 protected boolean removeEldestEntry(Map.Entry<String, Pattern> eldest) {
8484 // Limit the number of match patterns at 10 most recently used
8485 return size() == 10;
8486 }
8487 };
8488 } else {
8489 p = matchPatterns.get(regexp);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected