Gebiet
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
public class Gebiet implements GebietInterface{
 | 
					public class Gebiet implements GebietInterface{
 | 
				
			||||||
    private int jahr;
 | 
					    private int jahr;
 | 
				
			||||||
    private int schlüssel;
 | 
					    private int schlüssel;
 | 
				
			||||||
@@ -31,11 +30,17 @@ public class Gebiet implements GebietInterface{
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public long getGesamtEinkommen() {
 | 
					    public long getGesamtEinkommen() {
 | 
				
			||||||
 | 
					        if(gesamtEinkommen <= 0){
 | 
				
			||||||
 | 
					            return -1;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return gesamtEinkommen;
 | 
					        return gesamtEinkommen;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public int getDurchschnittsEinkommen() {
 | 
					    public int getDurchschnittsEinkommen() {
 | 
				
			||||||
 | 
					        if(durchschnittsEinkommen <= 0){
 | 
				
			||||||
 | 
					            return -1;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return durchschnittsEinkommen;
 | 
					        return durchschnittsEinkommen;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user