Category Archives: Apache Commons

PHPHOST BLOG

Web Hosting Related Articles You May Need

Determining Presence of Characters or Integers in String with Guava CharMatcher and Apache Commons Lang StringUtils

A recent Reddit post asked the question, “Is there a predefined method for checking if a variable value contains a particular character or integer?” That question-based title was also asked a different way, “A method or quick way for checking if a vari… Continue reading

Posted in Apache Commons, Guava, Java (General), Syndicated | Comments Off on Determining Presence of Characters or Integers in String with Guava CharMatcher and Apache Commons Lang StringUtils

ToString: Hexadecimal Representation of Identity Hash Codes

I have blogged before on the handy Apache Commons ToStringBuilder and I was recently asked what the seemingly cryptic text appearing in the generated String output constitutes. The colleague asking the question correctly surmised that what he was looki… Continue reading

Posted in Apache Commons, Java (General), Syndicated | Comments Off on ToString: Hexadecimal Representation of Identity Hash Codes

Checking for Null or Empty or White Space Only String in Java

.NET Framework 4 introduces a new method on its String class called IsNullOrWhiteSpace that checks whether a provided String is null, empty, or consists only of “white space.” This handy method is in addition to the method IsNullOrEmpty that has been a… Continue reading

Posted in Apache Commons, Groovy, Guava, Java (General), Syndicated | Comments Off on Checking for Null or Empty or White Space Only String in Java