This commit is contained in:
2022-12-06 13:54:40 +01:00
parent 78dfa848fa
commit a2bd838467

View File

@@ -1,4 +1,3 @@
public class Gebiet implements GebietInterface{
private int jahr;
private int schlüssel;
@@ -31,11 +30,17 @@ public class Gebiet implements GebietInterface{
@Override
public long getGesamtEinkommen() {
if(gesamtEinkommen <= 0){
return -1;
}
return gesamtEinkommen;
}
@Override
public int getDurchschnittsEinkommen() {
if(durchschnittsEinkommen <= 0){
return -1;
}
return durchschnittsEinkommen;
}