About
Data Type - Null Value in Java
Function
From javase/9/docs/api/java/util/objects.html
<code java>
import static java.util.Objects.requireNonNull;
.....
public constructor(String s)
{
this.s = requireNonNull(s, "s is null");
}
- nonNull
See also:
- javase/9/docs/api/java/util/Optional.html. A container object which may or may not contain a non-null value.