Java BigDecimal Compare compareToOne(BigDecimal x)

Here you can find the source of compareToOne(BigDecimal x)

Description

compare To One

License

Open Source License

Declaration

static int compareToOne(BigDecimal x) 

Method Source Code


//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*/
}

Related

  1. compareBigDecimal(BigDecimal bigDecimal, BigDecimal bigDecimal2, boolean desc)
  2. compareBigDecimals(java.math.BigDecimal one, java.math.BigDecimal two)
  3. compareTo(BigDecimal b1, BigDecimal b2)
  4. compareTo(final BigDecimal b0, final BigDecimal b1)
  5. compareTo(final BigDecimal v1, final BigDecimal v2)
  6. compareToZeroOrNull(BigDecimal value)
  7. greaterThan(BigDecimal decimal, double number)
  8. GreaterThan(BigDecimal one, BigDecimal two)
  9. greaterThan(BigDecimal val, double threshold)