src/main/java/de/uapcore/lightpit/entities/Project.java

changeset 47
57cfb94ab99f
parent 38
cf85ef18f231
child 81
1a2e7b5d48f7
equal deleted inserted replaced
46:1574965c7dc7 47:57cfb94ab99f
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 package de.uapcore.lightpit.entities; 29 package de.uapcore.lightpit.entities;
30 30
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.Objects; 31 import java.util.Objects;
34 32
35 public class Project { 33 public class Project {
36 34
37 private final int id; 35 private final int id;
38 private String name; 36 private String name;
39 private String description; 37 private String description;
40 private String repoUrl; 38 private String repoUrl;
41 private User owner; 39 private User owner;
42
43 private final List<Version> versions = new ArrayList<>();
44 40
45 public Project(int id) { 41 public Project(int id) {
46 this.id = id; 42 this.id = id;
47 } 43 }
48 44
80 76
81 public void setOwner(User owner) { 77 public void setOwner(User owner) {
82 this.owner = owner; 78 this.owner = owner;
83 } 79 }
84 80
85 public List<Version> getVersions() {
86 return versions;
87 }
88
89 @Override 81 @Override
90 public boolean equals(Object o) { 82 public boolean equals(Object o) {
91 if (this == o) return true; 83 if (this == o) return true;
92 if (o == null || getClass() != o.getClass()) return false; 84 if (o == null || getClass() != o.getClass()) return false;
93 Project project = (Project) o; 85 Project project = (Project) o;

mercurial