Here you can find the source of convertValueToZeroIfNullOrNegative(BigInteger value)
public static BigInteger convertValueToZeroIfNullOrNegative(BigInteger value)
//package com.java2s; import java.math.BigInteger; public class Main { public static BigInteger convertValueToZeroIfNullOrNegative(BigInteger value) { if (value == null || value.compareTo(BigInteger.ZERO) < 0) { return BigInteger.ZERO; }/*w w w . j a v a 2 s.c om*/ return value; } }