com.nedap.archie.rm.datavalues.DvBoolean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openehr-rm Show documentation
Show all versions of openehr-rm Show documentation
An implementation of the openehr reference model
package com.nedap.archie.rm.datavalues;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.util.Objects;
/**
* Created by pieter.bos on 04/11/15.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DV_BOOLEAN", propOrder = {
"value"
})
public class DvBoolean extends DataValue implements SingleValuedDataValue {
private Boolean value;
public DvBoolean() {
}
public DvBoolean(Boolean value) {
this.value = value;
}
@Override
public Boolean getValue() {
return value;
}
@Override
public void setValue(Boolean value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DvBoolean dvBoolean = (DvBoolean) o;
return Objects.equals(value, dvBoolean.value);
}
@Override
public int hashCode() {
return Objects.hash(value);
}
}