Some code snippets from Parallel Universe's opinionated modern java guide (http://blog.paralleluniverse.co/2014/05/01/modern-java/?utm_source=hackernewsletter&utm_medium=email&utm_term=code)