public abstract class Null extends Object
null reference.| Modifier and Type | Method and Description |
|---|---|
static <A> A |
check(A x)
Deprecated.
Use
Objects.requireNonNull(Object) instead. |
static <A> A |
check(A x,
String msg)
Deprecated.
Use
Objects.requireNonNull(Object, String) instead. |
static <A> A |
check(String name,
A x)
Deprecated.
Use
Objects.requireNonNull(Object, String) instead. |
static <A> boolean |
equals(A x,
A y)
Deprecated.
Use
Objects.equals(java.lang.Object, java.lang.Object) instead. |
static int |
hashCode(Object x)
Deprecated.
Use
Objects.hashCode(java.lang.Object) instead. |
static <A,B> Function<A,B> |
lift(Function<A,B> fun)
Returns a variant of the given function that handles
null
arguments. |
public static <A> boolean equals(A x,
A y)
Objects.equals(java.lang.Object, java.lang.Object) instead.public static int hashCode(Object x)
Objects.hashCode(java.lang.Object) instead.public static <A> A check(A x)
Objects.requireNonNull(Object) instead.public static <A> A check(A x,
String msg)
Objects.requireNonNull(Object, String) instead.public static <A> A check(String name, A x)
Objects.requireNonNull(Object, String) instead.public static <A,B> Function<A,B> lift(Function<A,B> fun)
null
arguments.fun - a functionfun, but
returns null immediately when applied to null.NullPointerException - if fun == null.see also the complete user documentation .