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