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

changeset 75
33b6843fdf8a
parent 62
833e0385572a
child 86
0a658e53177c
equal deleted inserted replaced
74:91d1fc2a3a14 75:33b6843fdf8a
31 import java.util.Objects; 31 import java.util.Objects;
32 32
33 public final class Version implements Comparable<Version> { 33 public final class Version implements Comparable<Version> {
34 34
35 private final int id; 35 private final int id;
36 private final Project project; 36 private Project project;
37 private String name; 37 private String name;
38 /** 38 /**
39 * 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.
40 */ 40 */
41 private int ordinal = 0; 41 private int ordinal = 0;
46 this.project = project; 46 this.project = project;
47 } 47 }
48 48
49 public int getId() { 49 public int getId() {
50 return id; 50 return id;
51 }
52
53 public void setProject(Project project) {
54 this.project = project;
51 } 55 }
52 56
53 public Project getProject() { 57 public Project getProject() {
54 return project; 58 return project;
55 } 59 }

mercurial