Merge remote-tracking branch 'Java/master'
# Conflicts: # src/Gebiet.java
This commit is contained in:
		
							
								
								
									
										10
									
								
								.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							@@ -1,10 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="RunConfigurationProducerService">
 | 
					 | 
				
			||||||
    <option name="ignoredProducers">
 | 
					 | 
				
			||||||
      <set>
 | 
					 | 
				
			||||||
        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
 | 
					 | 
				
			||||||
      </set>
 | 
					 | 
				
			||||||
    </option>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
@@ -6,8 +6,59 @@
 | 
				
			|||||||
 * abgeleitete Eigenschaft und wird dementsprechend in der Methode 'getAnzahlEinwohner'
 | 
					 * abgeleitete Eigenschaft und wird dementsprechend in der Methode 'getAnzahlEinwohner'
 | 
				
			||||||
 * berechnet.
 | 
					 * berechnet.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author Gubitz, Wöstemeyer, Pfannenstiel, Maier, Vigier
 | 
					 * @author Gubitz, Wöstemeyer, Pfannenstiel, Maier, Vigier :D
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class Gebiet {
 | 
					public class Gebiet {
 | 
				
			||||||
 | 
					    private int jahr;
 | 
				
			||||||
 | 
					    private int schlüssel;
 | 
				
			||||||
 | 
					    private String name;
 | 
				
			||||||
 | 
					    private long gesamtEinkommen;
 | 
				
			||||||
 | 
					    private int durchschnittsEinkommen;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Gebiet(int jahr, int schlüssel, String name, long gesamtEinkommen, int durchschnittsEinkommen) {
 | 
				
			||||||
 | 
					        this.jahr = jahr;
 | 
				
			||||||
 | 
					        this.schlüssel = schlüssel;
 | 
				
			||||||
 | 
					        this.name = name;
 | 
				
			||||||
 | 
					        this.gesamtEinkommen = gesamtEinkommen;
 | 
				
			||||||
 | 
					        this.durchschnittsEinkommen = durchschnittsEinkommen;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getJahr() {
 | 
				
			||||||
 | 
					        return jahr;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getAnzahlEinwohner(){
 | 
				
			||||||
 | 
					        if(getAnzahlEinwohner()== 0){
 | 
				
			||||||
 | 
					            return  -1;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return getAnzahlEinwohner();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getSchlüssel() {
 | 
				
			||||||
 | 
					        return schlüssel;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public String getName() {
 | 
				
			||||||
 | 
					        return name;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public long getGesamtEinkommen() {
 | 
				
			||||||
 | 
					        return gesamtEinkommen;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getDurchschnittsEinkommen() {
 | 
				
			||||||
 | 
					        return durchschnittsEinkommen;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public String toString() {
 | 
				
			||||||
 | 
					        return "Gebiet{" +
 | 
				
			||||||
 | 
					                "jahr=" + jahr +
 | 
				
			||||||
 | 
					                ", schlüssel=" + schlüssel +
 | 
				
			||||||
 | 
					                ", name='" + name + '\'' +
 | 
				
			||||||
 | 
					                ", gesamtEinkommen=" + gesamtEinkommen +
 | 
				
			||||||
 | 
					                ", durchschnittsEinkommen=" + durchschnittsEinkommen +
 | 
				
			||||||
 | 
					                '}';
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user