com.nedap.archie.rm.generic.RevisionHistory 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.generic;
import com.nedap.archie.rm.RMObject;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Created by pieter.bos on 08/07/16.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "REVISION_HISTORY")
public class RevisionHistory extends RMObject {
public RevisionHistory() {
}
public RevisionHistory(List items) {
this.items = items;
}
private List items = new ArrayList<>();
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
public void addItem(RevisionHistoryItem item) {
this.items.add(item);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RevisionHistory that = (RevisionHistory) o;
return Objects.equals(items, that.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
}