Finalizado soporte de persistencia
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user