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

changeset 128
947d0f6a6a83
parent 86
0a658e53177c
child 134
f47e82cd6077
equal deleted inserted replaced
127:6105ee2cceaf 128:947d0f6a6a83
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 Project project;
37 private String name; 36 private String name;
38 /** 37 /**
39 * If we do not want versions to be ordered lexicographically we may specify an order. 38 * If we do not want versions to be ordered lexicographically we may specify an order.
40 */ 39 */
41 private int ordinal = 0; 40 private int ordinal = 0;
45 this.id = id; 44 this.id = id;
46 } 45 }
47 46
48 public int getId() { 47 public int getId() {
49 return id; 48 return id;
50 }
51
52 public void setProject(Project project) {
53 this.project = project;
54 }
55
56 public Project getProject() {
57 return project;
58 } 49 }
59 50
60 public String getName() { 51 public String getName() {
61 return name; 52 return name;
62 } 53 }

mercurial