-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DG: Find #141
Update DG: Find #141
Conversation
I think the commit is messed up, cos I branch this from the branch where I updated the Design section. So, this PR includes both changes. RIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Comments on minor stuffs. Can ignore if you think they are okay!
* loops through the **keywords** (of type `List<String>`) and return true if there is any match with the `Nameable` | ||
|
||
`Nameable` provides the following operation: | ||
* `Nameable#getName()` - Return the name attribute of a `TravelPlanObject` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns instead of Return? And not sure if there should be a full stop here.
`Predicate<Nameable>` and has the **test** method overriden with a custom implementations. | ||
|
||
The `NameContainsKeywordsPredicate#test(Nameable)` is as follows: | ||
* loops through the **keywords** (of type `List<String>`) and return true if there is any match with the `Nameable` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there should be a full stop here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be:
- loops through the keywords (of type
List<String>
) and return true if there is any match withNameable.getName().name
HALPPPP!!