MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / removeEldestEntry

Method removeEldestEntry

src/main/java/fielded/EditorUtils.java:21–24  ·  view source on GitHub ↗
(Map.Entry<String, Consumer<JSONObject>> eldest)

Source from the content-addressed store, hash-verified

19 static private final String prefix = "editor.utils.";
20 Map<String, Consumer<JSONObject>> messageTable = new LinkedHashMap<String, Consumer<JSONObject>>() {
21 @Override
22 protected boolean removeEldestEntry(Map.Entry<String, Consumer<JSONObject>> eldest) {
23 return this.size() > 5;
24 }
25 };
26 int suffix = 0;
27 private RemoteEditor editor;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected