diff --git a/pom.xml b/pom.xml index 2153463..a949fee 100644 --- a/pom.xml +++ b/pom.xml @@ -1,33 +1,39 @@ - - 4.0.0 - Java - Java - 0.0.1-SNAPSHOT - JavaTesting - - src - - - maven-compiler-plugin - 3.8.0 - - 1.8 - 1.8 - - - - - - - com.googlecode.json-simple - json-simple - 1.1.1 - - - joda-time - joda-time - 2.9.9 - - - + + 4.0.0 + Java + Java + 0.0.1-SNAPSHOT + JavaTesting + + src + + + maven-compiler-plugin + 3.8.0 + + 1.8 + 1.8 + + + + + + + com.googlecode.json-simple + json-simple + 1.1.1 + + + joda-time + joda-time + 2.9.9 + + + org.jetbrains + annotations + RELEASE + compile + + + \ No newline at end of file diff --git a/src/Person.java b/src/Person.java index 2ee9304..9546c75 100644 --- a/src/Person.java +++ b/src/Person.java @@ -1,64 +1,58 @@ -public class Person { - - private Account account; - private Education edu; - private String name; - private Car car; - private Location location; - - - public Person(int ID, String name, Level lvl) { - account = new Account(name,ID); - edu = new Education(null, null, lvl); - car = new Car(); - location = new Location(); - this.name = name; - } - - public Account getAccount() { - return account; - } - - public Education getEdu() { - return edu; - } - - public Car getCar() { - return car; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Location getLocation() { - return location; - } - - public void setLocation(Location location) { - this.location = location; - } - - public void setCar(Car car) { - this.car = car; - } - - public boolean hasCar() { - if (car.getMake() != null) { - return true; - } - else return false; - } - - public boolean isPHD() { - if (this.edu.getLevel() == Level.PHD) { - return true; - } - else return false; - } - -} +public class Person { + + private Account account; + private Education edu; + private String name; + private Car car; + private Location location; + + + public Person(int ID, String name, Level lvl) { + account = new Account(name, ID); + edu = new Education(null, null, lvl); + car = new Car(); + location = new Location(); + this.name = name; + } + + public Account getAccount() { + return account; + } + + public Education getEdu() { + return edu; + } + + public Car getCar() { + return car; + } + + public void setCar(Car car) { + this.car = car; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Location getLocation() { + return location; + } + + public void setLocation(Location location) { + this.location = location; + } + + public boolean hasCar() { + return car.getMake() != null; + } + + public boolean isPHD() { + return this.edu.getLevel() == Level.PHD; + } + +}