Here you can find the source of negate(final BigDecimal value)
public static BigDecimal negate(final BigDecimal value)
//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; } }