Coding in the small with Google Collections: Objects.nonNull
Part 6 in a Series by Robert Konigsberg, Guest blogger... In the first episode, Jesse talked about the Preconditions class. That's not the only mechanism supplied by the Google Collections library for data validation. We're going to look at Objects.nonNull(T) and, by association, Objects.nonNull(T, String). Objects.…