nxt.notnull

Undocumented in source.

Members

Functions

assumeNotNull
NotNull!T assumeNotNull(T t)

A convenience function to construct a NotNull value from something t you know isn't null.

checkNull
CheckNull!T checkNull(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceNotNull
NotNull!T enforceNotNull(T t)

A convenience function to check for null t. If you pass null to t, it will throw an exception. Otherwise, return NotNull!T.

Structs

CheckNull
struct CheckNull(T)

by Andrej Mitrovic

NotNull
struct NotNull(T)

NotNull ensures a null value can never be stored.

Templates

isNullAssignable
template isNullAssignable(T)

Note that NotNull!T is not isNullAssignable.

Meta