Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

ODE-1074: Change the method name "contains" to "find". #7

Merged
merged 1 commit into from
May 4, 2018
Merged

ODE-1074: Change the method name "contains" to "find". #7

merged 1 commit into from
May 4, 2018

Conversation

Kui-Liu
Copy link
Contributor

@Kui-Liu Kui-Liu commented Apr 22, 2018

The method tries to find an Object in Collection c that deep equals to the Object t1.
If found, return the found object, otherwise return null.
Thus, rename the method as "find" should be more clear than "contains" since "contains" is prone to ask whether something is contained or not and return true or false.

@Kui-Liu Kui-Liu changed the title Change the method name "contains" to "find". ODE-1074: Change the method name "contains" to "find". Apr 24, 2018
The method tries to find an Object in Collection c that deep equals to the Object t1.
If found, return the found object, otherwise return null.
Thus, rename the method as "find" should be more clear than "contains" since "contains" is prone to ask whether something is contained or not and return true or false.
@asfgit asfgit merged commit 3a06ad7 into apache:master May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants