Tag Archives: guava

Guava 21 erschienen – Im Zeichen von Java 8

Googles beliebte Bibliothek Guava ist in Version 21.0 erschienen. Hauptaspekt dieses Releases sind Anpassungen für Java 8, insbesondere dessen Lambdas & Streams API. Auszug der Neuerungen Guavas Function, Predicate und Supplier Interfaces erweitern jetzt die gleichnamigen FunctionalInterfaces aus Java 8. … Continue reading

Posted in Did you know?, Java and Quality | Tagged , , | Leave a comment

Splitting and joining strings with Guava

Joining strings from a collection or splitting strings in several elements can be quite difficult in Java. The JDK only offers a split method expecting a regular expression and returning an array. But this quite powerful approach is not easy … Continue reading

Posted in Java and Quality, Java Basics | Tagged , , | Leave a comment

Guava 12.0 released

A few days ago Guava 12.0 was released. We already published a few articles about Guava, a few more will follow in the next weeks. So this release announcement might be interesting for you. Guava 12.0 is the first release … Continue reading

Posted in Java and Quality, Java Basics | Tagged | Leave a comment

Handling Null values with Guava

Handling null values in Java can be quite annoying. Careless use of null can also be a source of a variety of bugs. “I call it my billion-dollar mistake.” – Sir C. A. R. Hoare, on his invention of the … Continue reading

Posted in Java and Quality, Java Basics | Tagged , | 1 Comment

Failing Fast With Guava’s Preconditions

One of the many Good Programmer’s mantras is to always have your input data checked against invalid values. So we decorate our public interfaces with assertions or intricate if-then-else constructs checking all possible combinations of the input data, throwing around … Continue reading

Posted in Java and Quality, Java Basics | Tagged , , , | 1 Comment

Fluency in Java

Want to code collections more fluently in Java like in Groovy with its expressive syntax. Have look at this interesting thoughts and comparison between plain Java, Google Collections and Groovy: http://www.kellyrob99.com/blog/2010/05/15/achieving-groovy-like-fluency-in-java-with-google-collections/

Posted in Groovy and Grails, Java and Quality | Tagged , , | Leave a comment

Google Collections Library is final

The “Google Collections Library” has finally been released: The Google Collections Library 1.0 is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of … Continue reading

Posted in Java Basics | Tagged , , | Leave a comment