40 lines
730 B
Java
40 lines
730 B
Java
package org.sysmon.shared;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class MeasurementPair implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String name;
|
|
private Object value;
|
|
|
|
public MeasurementPair() { }
|
|
|
|
public MeasurementPair(String name, Object value) {
|
|
this.name = name;
|
|
this.value = value;
|
|
}
|
|
|
|
public String toString() {
|
|
return String.format("%s: %s", name, value);
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public Object getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public void setValue(Object value) {
|
|
this.value = value;
|
|
}
|
|
|
|
}
|