Skip to content
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

Merged
merged 22 commits into from
Oct 21, 2020
Merged

Conversation

lyeyixian
Copy link
Collaborator

HALPPPP!!

@lyeyixian lyeyixian added this to the v1.3 milestone Oct 21, 2020
@lyeyixian lyeyixian linked an issue Oct 21, 2020 that may be closed by this pull request
@lyeyixian
Copy link
Collaborator Author

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

Copy link

@jiaweiteo jiaweiteo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@jeannetoh99 jeannetoh99 left a 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`
Copy link
Collaborator

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`
Copy link
Collaborator

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.

Copy link
Collaborator

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 with Nameable.getName().name

@lyeyixian lyeyixian merged commit 1e64bc7 into AY2021S1-CS2103-T14-3:master Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update DG: Find
3 participants