Here you can find the source of isNegative(BigDecimal amount)
public static Boolean isNegative(BigDecimal amount)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static Boolean isNegative(BigDecimal amount) { return null != amount && BigDecimal.ZERO.compareTo(amount) == 1; }//ww w . java 2 s .co m public static int compareTo(Object value1, Object value2) { return new BigDecimal(String.valueOf(value1)).compareTo(new BigDecimal(String.valueOf(value2))); } }