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

Method matches

app/src/processing/app/contrib/ListPanel.java:610–617  ·  view source on GitHub ↗
(Contribution contrib, String typed)

Source from the content-addressed store, hash-verified

608
609
610 static protected boolean matches(Contribution contrib, String typed) {
611 String search = ".*" + typed.toLowerCase() + ".*";
612
613 return (matchField(contrib.getName(), search) ||
614 matchField(contrib.getSentence(), search) ||
615 matchField(contrib.getAuthorList(), search) ||
616 matchField(contrib.getParagraph(), search));
617 }
618
619
620 static private boolean matchField(String field, String regex) {

Callers

nothing calls this directly

Calls 5

matchFieldMethod · 0.95
getSentenceMethod · 0.80
getAuthorListMethod · 0.80
getParagraphMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected