Java BigDecimal Negate negate(final BigDecimal value)

Here you can find the source of negate(final BigDecimal value)

Description

Returns the negate of the value, handles null.

License

Apache License

Declaration

public static BigDecimal negate(final BigDecimal value) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    /**/*  w  w w.j av a  2 s .  c om*/
     * Returns the negate of the value, handles null.
     */
    public static BigDecimal negate(final BigDecimal value) {
        return value != null ? value.negate() : null;
    }
}

Related

  1. negate(BigDecimal amount)
  2. negate(BigDecimal decimal)
  3. negateIfTrue(final boolean condition, final BigDecimal value)
  4. negation(BigDecimal bigDecimal)