Google Guava
-
Core Java
Iterate over a Guava Multimap
A Multimap is a collection that maps keys to values, where each key may be associated with multiple values. Let…
Read More » -
Core Java
Guavate: tiny library bridging Guava and Java8
Java8 is great and adds some useful abstractions to the JDK that have found popularity in the Java community via…
Read More » -
Enterprise Java
Throttle methods with Spring AOP and Guava rate limiter
External services or APIs may have usage limits or they just cannot handle loads of requests without failing. This post…
Read More » -
Core Java
Google Guava: 5 Things You Never Knew It Could Do
What are some of the lesser known features of Google Guava that every developer could use? It’s one of the…
Read More » -
Core Java
Using Google Guava Cache for local caching
Lot of times we would have to fetch the data from a database or another webservice or load it from…
Read More » -
Enterprise Java
Spring Caching abstraction and Google Guava Cache
Spring provides a great out of the box support for caching expensive method calls. The caching abstraction is covered in…
Read More » -
Core Java
Testing code for excessively large inputs
When writing unit tests we mostly focus on business correctness. We do our best to exercise happy path and all…
Read More » -
Core Java
Building extremely large in-memory InputStream for testing purposes
For some reason I needed extremely large, possibly even infinite InputStream that would simply return the samebyte[] over and over. This way I…
Read More » -
Core Java
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…
Read More »