how to avoid overload method when  validating different number type if be positive or zero in java?
<pre><code>public static boolean isNoPositive(long number) {
    return number &lt;= 0;
}; 

public static boolean isNoPositive(float number) {
    return number &lt;= 0;
 };
</code></pre>

<p>when every primary type added , I should add one similar method: overload the method.
but if I used base class : <code>Number</code>.  not have > 0 method but only has <code>intValue()</code>. <code>floatValue()</code>,etc.</p>

<p>So what I can do to avoid overload?</p>
