]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/deploy/NumericDSId.java
Migrate deploy developments to main project
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / deploy / NumericDSId.java
1 package org.argeo.slc.core.deploy;
2
3 import org.argeo.slc.core.build.DistributionId;
4
5 /**
6 * A basic implementation of a deployed system id, based on a long value and a
7 * reference to a distribution id.
8 */
9 public class NumericDSId implements DeployedSystemId {
10
11 private Long value;
12 private DistributionId distributionId;
13
14 public Long getValue() {
15 return value;
16 }
17
18 public void setValue(Long value) {
19 this.value = value;
20 }
21
22 public DistributionId getDistributionId() {
23 return distributionId;
24 }
25
26 public void setDistributionId(DistributionId distributionId) {
27 this.distributionId = distributionId;
28 }
29
30 @Override
31 public boolean equals(Object obj) {
32 return value.toString().equals(obj.toString());
33 }
34
35 @Override
36 public String toString() {
37 return value.toString();
38 }
39
40 }