Removing a default Double or int
<p>Hello I'm after a cleaner implementation of how to check for a defaulted doubled value such as -1.0</p>

<p>My implementation for strings is:</p>

<pre><code>    private static String stringNullChecker(String o)
{
    if(o == null || o.equals("?") || o.equals(""))
    {
        return null;
    }
    else
    {
        return o;
    }
}
</code></pre>

<p>so I can just call it as follows:</p>

<pre><code>obj.setExDestination(stringNullChecker(wrapperObj.getExchange()));
</code></pre>

<p>However if I try the same with doubles it will throw a null pointer error. </p>

<p>so the implementation is currently:</p>

<pre><code>        if(doubleNullChecker(wrapperObj.getPrcCcy()) != null)
    {
        obj.setSettlCurrFxRate(wrapperObj.getPrcCcy());
    }
</code></pre>

<p>But I'm having to do this If statement for every double/int value. Which is a lot of repeated code, I'd like something to push this out into it's own atomic function but other than a Boolean I'm at a loss as what would be nice clean code.</p>

<p>Basically I only want to set the value if it has a non default value.</p>
