This is something that every now and then I have to do: check whether either one or all elements of a collection meet a certain criteria.ย The standard code initially in Java involved a for loop and iterating through the collection explicitly and checking the condition at each step. Then Apache Commons came on with their […]
Posts Tagged: google guava
Small Yet So Costly Java Mistake
OK so I felt like I needed to share this code with “the world” as I think it’s a good example of a few things: first of all nobody’s perfect — I know you read that in my website tag line ๐ but yeah nobody’s perfect… sadly, in this instance, myself included ๐ secondly, it […]