
package de.ivu.elect.interfaces.core.zulassungspruefung;

import java.io.Serializable;
import java.util.Objects;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public class PruefkriteriumReferenz implements Serializable {

  private static final long serialVersionUID = 1L;

  @XmlElement(required = true)
  private Long id;

  public PruefkriteriumReferenz() {
    super();
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  @Override
  public int hashCode() {
    return Objects.hash(id);
  }

  @Override
  public boolean equals(Object another) {
    if (this == another) {
      return true;
    }

    if (another == null || getClass() != another.getClass()) {
      return false;
    }

    return Objects.equals(id, ((PruefkriteriumReferenz) another).id);
  }
}
