Here you can find the source of compareToOne(BigDecimal x)
static int compareToOne(BigDecimal x)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { static int compareToOne(BigDecimal x) { return x.compareTo(BigDecimal.ONE); }/* w w w. ja v a 2s. c om*/ }