default boolean ifBigDecimal(Consumer<BigDecimal> consumer){
  if (isBigDecimal()) {
    consumer.accept(asBigDecimal());
    return true;
  }
  return false;
}

default boolean ifBigDecimal ( Consumer < BigDecimal > consumer ) { if ( isBigDecimal ( ) ) { consumer . accept ( asBigDecimal ( ) ) ; return true ; } return false ; }
if a value is a variable - sized decimal , invoke the specified consumer with the value , otherwise do nothing .
