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)
| 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 |