Java BigDecimal Equal equals(BigDecimal a, BigDecimal b)

Here you can find the source of equals(BigDecimal a, BigDecimal b)

Description

equals

License

Open Source License

Declaration

public static boolean equals(BigDecimal a, BigDecimal b) 

Method Source Code


//package com.java2s;

import java.math.BigDecimal;

public class Main {

    public static boolean equals(BigDecimal a, BigDecimal b) {
        return (a == b) || (a != null && a.compareTo(b) == 0);
    }//from  ww w .  ja va  2s. c om
}

Related

  1. bigDecimalEqual(BigDecimal a, BigDecimal b)
  2. bigDecimalEquals(BigDecimal a, Number b)
  3. bigDecimalEqualsOrBothNull(BigDecimal obj1, BigDecimal obj2)
  4. equalBD(BigDecimal val1, BigDecimal val2)
  5. equals(BigDecimal bd1, BigDecimal bd2)
  6. equals(BigDecimal decimal, double number)
  7. equals(BigDecimal left, BigDecimal right, int scale)
  8. Equals(BigDecimal one, BigDecimal two)