Tag Archives: Clean Code

Google Guava vs Apache Commons for Argument Validation

Google Guava and Apache Commons both offer utility classes for argument validation. This article describes the differences between them. Continue reading

Posted in Java | Tagged , , , , | 30 Comments

Less Verbose Java Collection Creation With Google Guava

Static factory methods from Google Guava library make the creation of generic collections in Java less verbose. Continue reading

Posted in Java | Tagged , , | Leave a comment

Maintainable HashCode and Equals Using Apache Commons

Using reflection based equals and hashCode from Apache Commons is a more maintainable alternative to code generation in the IDE. Continue reading

Posted in Java | Tagged , , , , | 1 Comment