Gebiet
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user