commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "akilan i (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1351) StringUtils.equalsIgnoreSorroundingSpace
Date Sat, 26 Aug 2017 09:37:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

akilan i updated LANG-1351:
---------------------------
    Description: 
Convenience method of StringUtils.equals("abc ".trim()," abc".trim())

 StringUtils.equalsIgnoreSorroundingSpace(null, null)   = true
 StringUtils.equalsIgnoreCase(null, "abc")  = false
 StringUtils.equalsIgnoreCase("abc", null)  = false
 StringUtils.equalsIgnoreCase("abc", "abc") = true
 StringUtils.equalsIgnoreCase("abc", "ABC") = true


  was:
Inversion of StringUtils.defaultString(String).

StringUtils.emptyToNull(null) = null
StringUtils.emptyToNull("") = null
StringUtils.emptyToNull("bat") = "bat"



> StringUtils.equalsIgnoreSorroundingSpace
> ----------------------------------------
>
>                 Key: LANG-1351
>                 URL: https://issues.apache.org/jira/browse/LANG-1351
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: akilan i
>            Priority: Minor
>
> Convenience method of StringUtils.equals("abc ".trim()," abc".trim())
>  StringUtils.equalsIgnoreSorroundingSpace(null, null)   = true
>  StringUtils.equalsIgnoreCase(null, "abc")  = false
>  StringUtils.equalsIgnoreCase("abc", null)  = false
>  StringUtils.equalsIgnoreCase("abc", "abc") = true
>  StringUtils.equalsIgnoreCase("abc", "ABC") = true



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message