-
Notifications
You must be signed in to change notification settings - Fork 4
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
add command to view details of an item #44
Conversation
change gui name
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
============================================
- Coverage 63.21% 62.55% -0.66%
- Complexity 730 747 +17
============================================
Files 124 128 +4
Lines 2539 2604 +65
Branches 269 278 +9
============================================
+ Hits 1605 1629 +24
- Misses 847 882 +35
- Partials 87 93 +6
Continue to review full report at Codecov.
|
public static boolean containsMultipleWordsIgnoreCase(String sentence, String words) { | ||
requireNonNull(sentence); | ||
requireNonNull(words); | ||
|
||
String preppedWord = words.trim(); | ||
checkArgument(!preppedWord.isEmpty(), "Word parameter cannot be empty"); | ||
|
||
return sentence.equalsIgnoreCase(preppedWord); | ||
} |
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.
Would be better to name it as "exactlyMultipleWordsIgnoreCase"? "contains" is a little misleading.
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.
Small change in method name, other than that LGTM
also changed the UG link