O'Reilly logo
  • Marquis Patrick thinks this is interesting:

The following is a summary of the four methods from the previous example:

  • checkNotNull (T object, Object message): This method returns the object if it is not null; otherwise a NullPointerException error is thrown.
  • checkElementIndex (int index, int size, Object message): In this method, the value of the index variable is the position of the ...


Cover of Getting Started with Google Guava


Guavan Notes