Finalizado soporte de persistencia

This commit is contained in:
2019-11-15 14:37:52 +01:00
parent 0d6d20001f
commit 18238bd6b8
13 changed files with 209 additions and 57 deletions

View File

@@ -1,14 +1,11 @@
package Logica;
import java.time.Month;
import java.time.Year;
import java.io.Serializable;
import java.util.Vector;
public class Gestion{
public class Gestion implements Serializable{
private Vector<Transaccion> gestiones;
private float suma;
private float total;
private Month mes;
private Year anio;
private boolean isPositivo;
private String nombre;
@@ -55,6 +52,10 @@ public class Gestion{
}
}
public boolean esIngreso() {
return this.isPositivo;
}
public void alterarVisibilidad(int elemento) {
if(this.gestiones.get(elemento).alterarVisivilidad()) {
this.suma += this.gestiones.get(elemento).getDinero();