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

Method matchKeywords

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

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

(final String[] keywords)

Source from the content-addressed store, hash-verified

444 * @return true, if a keyword is found
445 */
446 public boolean matchKeywords(final String[] keywords) {
447 if (keywords == null) {
448 return false;
449 }
450
451 for (final String kw : keywords) {
452 if (!matchKeyword(kw)) {
453 return false;
454 }
455 }
456 return true;
457 }
458
459 /**
460 * Creates a new place from this place

Callers 2

testMatchKeywordsMethod · 0.95
updateMethod · 0.80

Calls 1

matchKeywordMethod · 0.95

Tested by 1

testMatchKeywordsMethod · 0.76