-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
122db8b
commit 5b57f6a
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
.../quemepongo/src/main/java/quemepongo/model/usuario/guardarropa/SugerenciaGuardarropa.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package quemepongo.model.usuario.guardarropa; | ||
|
||
import java.util.Set; | ||
import quemepongo.model.prenda.Prenda; | ||
|
||
/** | ||
* Sugerencias de modificacion de guardarropas. | ||
* | ||
* @since 05.27.2021 | ||
* @version 1.0 | ||
*/ | ||
public abstract class SugerenciaGuardarropa { | ||
|
||
private Prenda cambioSugerido; | ||
|
||
/** | ||
* Sugiere una prenda a cambiar | ||
* | ||
* @param cambioSugerido la prenda a eliminar | ||
*/ | ||
public SugerenciaGuardarropa(Prenda cambioSugerido) { | ||
this.cambioSugerido = cambioSugerido; | ||
} | ||
|
||
public Prenda getCambioSugerido() { | ||
return cambioSugerido; | ||
} | ||
|
||
public void setCambioSugerido(Prenda cambioSugerido) { | ||
this.cambioSugerido = cambioSugerido; | ||
} | ||
|
||
/** | ||
* Acepta los cambios de una sugerencia. | ||
* | ||
* @param prendas el listado sobre el cual efectivizar. | ||
* @since Iteración V | ||
*/ | ||
protected abstract void aceptarSugerencia(Set<Prenda> prendas); | ||
|
||
/** | ||
* Deshace los cambios de una sugerencia. | ||
* | ||
* @param prendas el listado sobre el cual efectivizar. | ||
* @since Iteración V | ||
*/ | ||
protected abstract void deshacerSugerencia(Set<Prenda> prendas); | ||
} |