1 package org
.argeo
.slc
.core
.test
;
3 import org
.argeo
.slc
.core
.deploy
.DeployedSystemId
;
6 * Basic implementation of test run id based on a long value and a reference to
7 * a deployed system id.
11 public class NumericTRId
implements TestResultId
{
16 private DeployedSystemId deployedSystemId
;
19 public NumericTRId() {
23 public NumericTRId(Long value
) {
28 * Initializes the long value with the current time (based on
29 * <code>java.lang.System.currentTimeMillis()</code>).
32 if (getValue() == null) {
33 setValue(System
.currentTimeMillis());
37 public Long
getValue() {
41 public void setValue(Long value
) {
45 public DeployedSystemId
getDeployedSystemId() {
46 return deployedSystemId
;
49 public void setDeployedSystemId(DeployedSystemId deployedSystemId
) {
50 this.deployedSystemId
= deployedSystemId
;
54 public boolean equals(Object obj
) {
55 return value
.toString().equals(obj
.toString());
59 public String
toString() {
60 return value
.toString();
67 void setTid(Long tid
) {