Ensures the given object isn't {@code null}.returnthe given objectthrowsNullPointerException if the object is null if (t == null) { throw new NullPointerException(); } return t;
if (t == null) { throw new NullPointerException(); } return t;
Ensures the given object isn't {@code null}.returnthe given objectthrowsNullPointerException if the object is null if (t == null) { throw new NullPointerException(message); } return t;
if (t == null) { throw new NullPointerException(message); } return t;