public static String format(Money money){
  long microAmount=0;
  if (money != null) {
    microAmount=money.getMicroAmount();
  }
 else {
    return PLACEHOLDER_NULL;
  }
  double amount=(double)microAmount / MICRO_UNITS;
  return String.format(FORMAT_MONEY,amount);
}

public static String format ( Money money ) { long microAmount = 0 ; if ( money != null ) { microAmount = money . getMicroAmount ( ) ; } else { return PLACEHOLDER_NULL ; } double amount = ( double ) microAmount / MICRO_UNITS ; return String . format ( FORMAT_MONEY , amount ) ; }
formats a given monetary value in a default format ( 2 decimals , padded left to 10 characters ) .
