MCPcopy Create free account
hub / github.com/Neop/mudmap2 / matchKeyword

Method matchKeyword

src/main/java/mudmap2/backend/Place.java:430–438  ·  view source on GitHub ↗

Returns true, if the keyword is found in any of the places data it searches in name, comments and flags @param keyword @return true, if the keyword is found

(String keyword)

Source from the content-addressed store, hash-verified

428 * @return true, if the keyword is found
429 */
430 private boolean matchKeyword(String keyword) {
431 keyword = keyword.toLowerCase();
432 // search in name
433 if (name.toLowerCase().contains(keyword)) {
434 return true;
435 }
436 // search in comments
437 return comments.toLowerCase().contains(keyword);
438 }
439
440 /**
441 * Returns true, if a keyword is found in any of the places data

Callers 1

matchKeywordsMethod · 0.95

Calls 1

containsMethod · 0.65

Tested by

no test coverage detected