private Representacion joinByRepresentacion(Collection<Silaba> mSilabas2) { Representacion representacion = Representacion.desde(""); for (Silaba silaba : mSilabas2) { representacion.append(silaba.getRepresentacion()); } return representacion; }
@Override public String toString() { Representacion representacionDeLaPalabra = toRepresentacion(); return representacionDeLaPalabra.toString(); }
public Palabra(Collection<Fonema> fonemas) { mSilabas = new ArrayList<Silaba>(); for (Fonema fonema : fonemas) { mSilabas.add(new Silaba(fonema, Representacion.desde(fonema.toString().toUpperCase()))); } }