public static <Type> MutableSingle<Type> ofNonNull(final Type value) {
        if (value == null) {
            throw new NullPointerException("Cannot construct non-null single with null value.");
        }
        return new MutableSingle<Type>(value);
    }
public static < Type > MutableSingle < Type > ofNonNull ( final Type value ) { if ( value == null ) { throw new NullPointerException ( "Cannot construct non-null single with null value." ) ; } return new MutableSingle < Type > ( value ) ; }
@param value cannot be null.
@return a new MutableSingle holding the passed non-null value.
@param <Type> type of stored value.
@throws NullPointerException if value is null.