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

changeset 59
c759c60507a2
parent 38
cf85ef18f231
child 62
833e0385572a
equal deleted inserted replaced
58:8d3047f78190 59:c759c60507a2
31 import java.util.Objects; 31 import java.util.Objects;
32 32
33 public class Version implements Comparable<Version> { 33 public class Version implements Comparable<Version> {
34 34
35 private final int id; 35 private final int id;
36 private final Project project;
36 private String name; 37 private String name;
37 /** 38 /**
38 * If we do not want versions to be ordered lexicographically we may specify an order. 39 * If we do not want versions to be ordered lexicographically we may specify an order.
39 */ 40 */
40 private int ordinal; 41 private int ordinal = 0;
41 private VersionStatus status; 42 private VersionStatus status = VersionStatus.Future;
42 43
43 public Version(int id) { 44 public Version(int id, Project project) {
44 this.id = id; 45 this.id = id;
46 this.project = project;
45 } 47 }
46 48
47 public int getId() { 49 public int getId() {
48 return id; 50 return id;
51 }
52
53 public Project getProject() {
54 return project;
49 } 55 }
50 56
51 public String getName() { 57 public String getName() {
52 return name; 58 return name;
53 } 59 }

mercurial