Code example for BigDecimal

Methods: equals

0
        if (o == this) return true;
        if (o == null) return false;
        if (o.getClass() != getClass()) { // final class, can do this
            return false; 
        } 
        return ((DecimalNode) o)._value.equals(_value);
    } 
 
    @Override 
    public int hashCode() { return _value.hashCode(); }
} 
Connect your IDE to all the code out there  Get Codota for Java