You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Chris Kujawa (JIRA)" <ji...@apache.org> on 2010/09/24 17:35:33 UTC
[jira] Updated: (LANG-652) Added a new equals method tho string
utils with signature equals(String, String, boolean)
[ https://issues.apache.org/jira/browse/LANG-652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Kujawa updated LANG-652:
------------------------------
Attachment: kujawa_equalsWithBooleanPatch
Here is the patch that adds the requested functionality.
> Added a new equals method tho string utils with signature equals(String, String, boolean)
> -----------------------------------------------------------------------------------------
>
> Key: LANG-652
> URL: https://issues.apache.org/jira/browse/LANG-652
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Chris Kujawa
> Fix For: 3.1
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I added a new equals method the StringUtils that allows users to call one common method to determine whether two Strings are equal.
> In other words, instead of calling
> StringUtils.equals( x, y) for case sensitive comparisons
> and
> StringUtils.equalsIgnoreCase( x, y ) for case-insensitive comparisons
> my addition allows a user to simple call
> StringUtils.equals( x, y, true) for case-sensitive comparisons
> or
> StringUtils.equals(x,y, false) for case-insensitive comparisons
> I believe this will be cleaner, and much easier to read than having two different method calls.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.