Java BigDecimal Parse isInteger(BigDecimal inValue)

Here you can find the source of isInteger(BigDecimal inValue)

Description

is Integer

License

Open Source License

Declaration

public static boolean isInteger(BigDecimal inValue) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    public static boolean isInteger(BigDecimal inValue) {

        try {/*from w  w  w  .ja v a2 s .  co m*/

            inValue.intValueExact();

        } catch (final Exception e) {
            // swallow
        }

        return false;
    }
}

Related

  1. isBigDecimal(String str)
  2. isBigDecimal(String value)
  3. isBigDecimalAssignable(String javaDataType)
  4. isBigDecimalType(Class type)
  5. isInteger(BigDecimal decimal)
  6. isIntegerBigDecimal(BigDecimal bd)
  7. isIntegerValue(final BigDecimal bd)
  8. parseBigDecimal(Object o, BigDecimal defaulti)
  9. parseBigDecimal(Object obj)