Skip to content

StringUtils.isAllLowerCase

Signature: StringUtils.isAllLowerCase(inputString)

Returns: Boolean result - true if inputString contains only lowercase letters and is not empty

Checks if the inputString contains only lowercase letters. null or empty ("") string will return false.

Parameters

Type Name Description Default
String inputString the String to check, may be null

Example

StringUtils.isAllLowerCase("I am just a simple message.");          // false
StringUtils.isAllLowerCase('spaces do not count as lowercase');     // false
StringUtils.isAllLowerCase('butnospacesandalllowercasemeanstrue')   // true