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 ...

From

Cover of Getting Started with Google Guava

Note

Guavan Notes