package org.col.api;

/**
 * Simplified literature reference class for proof of concept only.
 */
public class Reference {
  private Integer key;
  private Object csl;
  private Serial serial;
  private Integer year;
  private String doi;

  
}


@@ -15,16 +15,43 @@
 l.api;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * S
@@ -262,12 +262,533 @@
 doi;%0A%0A  
+@Override%0A  public boolean equals(Object o) %7B%0A    if (this == o) return true;%0A    if (o == null %7C%7C getClass() != o.getClass()) return false;%0A    Reference reference = (Reference) o;%0A    return Objects.equals(key, reference.key) &&%0A        Objects.equals(csl, reference.csl) &&%0A        Objects.equals(serial, reference.serial) &&%0A        Objects.equals(year, reference.year) &&%0A        Objects.equals(doi, reference.doi);%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return Objects.hash(key, csl, serial, year, doi);%0A  %7D
 %0A%7D%0A%0A

Add reference hash & equals methods