commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Kujawa (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-652) Added a new equals method tho string utils with signature equals(String, String, boolean)
Date Fri, 24 Sep 2010 15:33:32 GMT
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


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.


Mime
View raw message