/** * Retorna una cadena donde esta la fecha y el monto de la transaccion. * * @return */ public String toString() { // Locale locale = new Locale("en");//Imprime con el formato de numero argentino NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US); StringBuilder buffer = new StringBuilder(); if (tipo) { buffer.append(nf.format(monto)).append(" ").append(fecha.getDate()); } else { buffer.append(fecha.getDate()).append(" ").append(nf.format(monto)); } return buffer.toString(); }
public String getFecha() { return fecha.getDate(); }