commons-lang
commons-lang copied to clipboard
Apache Commons Lang
Check if the given class represents an array of primitives. Null-safe
Solving Jira LANG-1658 issue. Unit test with multiple assertions is included. Jira issue reference: https://issues.apache.org/jira/browse/LANG-1658
NumberUtils.createNumber(), BigDecimal for decimal fractions tending to zero
I'm not sure if there is reasoning behind `left(null, n)` returning `null`, but other `StringUtils` functions tends to return empty strings if their inputs are null. Likewise, I think it...
refine performance for toCharArray for long CharSequences. I made some performance tests and will pin them below.
LANG-1641: GmtTimeZone now implements #equals(Object) using it's time zone ID. Added tests to verify caching of GmtTimeZone instances.
Example: StopWatch watch = StopWatch.createStarted(); sleep(30ms) watch.lap() // returns 30 sleep(10ms) watch.lap() // returns 10
Utility methods that take a java.util.function.Consumer and possibly null value(s). The consumer is invoked if the value is not null or with the first non-null value, respectively. See [LANG-1634](https://issues.apache.org/jira/browse/LANG-1634) and...