Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A modern Java commons framework

Does anybody know of a good common frameworks for Java that has common but tedious utility methods that do things like...

ObjectUtil.equalsOrBothNull(obj1,obj2)

FormatUtil.formatName(String firstName String middleName, String lastName) 

AddressUtil.formatAddress(address)

etc...

It seems like I always end up re-implementing these sorts of classes. Guava-libraries is the closest thing I have found.

http://code.google.com/p/guava-libraries/

like image 732
benstpierre Avatar asked Dec 29 '22 05:12

benstpierre


1 Answers

Commons Lang has a lot of utilities that you might find helpful. I use that library in most of my projects. This page has a basic overview of the different classes. StringUtils is the one that I use most, but many of the others have been handy once or twice. ObjectUtils has the null-safe equals method you're looking for.

like image 68
Kaleb Brasee Avatar answered Jan 12 '23 00:01

Kaleb Brasee