StringUtils Class

No description available.

Constructors

There are no public constructors.

Static Methods

camelCaseToUnderScore( String input ) returns String
Used to convert a string in camel case (e.g. userID) into underscore (e.g. user_id). Credit: https://stackoverflow.com/a/50837880/
underscoreToCamelCase( String input ) returns String
Used to convert a string with underscores (e.g. user_id) into camel case (e.g. userID). Credit: https://stackoverflow.com/a/17061543/
capitalize( String fieldName ) returns String
Used to capitalize the first letter in the given string.
rtrim( String s ) returns String
Used to remove whitespaces at the end of a given string
getElapsedTime( long startTime ) returns String
Computes elapsed time between a given startTime and now. Returns a human-readable string representing the elapsed time.
formatFileSize( long size ) returns String
format( double d ) returns String
format( double value, int precision ) returns String
format( BigDecimal value, int precision ) returns String
format( long l ) returns String
Used to format a number with commas.