static boolean isBigDecimal(Object obj){
  return obj instanceof BigDecimal && obj.getClass() == BigDecimal.class;
}

static boolean isBigDecimal ( Object obj ) { return obj instanceof BigDecimal && obj . getClass ( ) == BigDecimal . class ; }
check whether this object is a bigdecimal .
