-java" theme="idea">final NonZeroInt number = NonZeroInt.Companion.createOrNull(23);<br>Assertions.assertNotNull(number);</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></details>
<br><p class="paragraph">You can use the <a href="create.html">NonZeroInt.Companion.create</a> method for throwing an exception instead of returning <code class=