Skip to content

Commit

Permalink
MAINT-2691 Add the clone method to Annotation class
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 authored and dmcgihtsdo committed Dec 5, 2024
1 parent 92e1f66 commit 9525d69
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@ public ReferenceSetMember toRefsetMember() {
return member;
}

public void clone(Annotation annotation) {
setAnnotationId(annotation.getAnnotationId());
setMemberId(annotation.getMemberId());
setRefsetId(annotation.getRefsetId());
setModuleId(annotation.getModuleId());
setActive(annotation.isActive());
setEffectiveTimeI(annotation.getEffectiveTimeI());
setReferencedComponentId(annotation.getReferencedComponentId());
setReleased(annotation.isReleased());
setTypeId(annotation.getTypeId());
setType(annotation.getType());
setValue(annotation.getValue());
setLanguageDialectCode(annotation.getLanguageDialectCode());
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down

0 comments on commit 9525d69

Please sign in to comment.