4e6bad912beb58079031797f8139ded8a12148ae
2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.ref
;
11 import java
.util
.UUID
;
13 import org
.apache
.commons
.lang
.builder
.HashCodeBuilder
;
16 * @author a.kohlbecker
18 public class EntityReference
{
22 public EntityReference(UUID uuid
, String label
) {
28 public UUID
getUuid() {
32 public String
getLabel() {
40 public int hashCode() {
41 return new HashCodeBuilder(17, 31)
51 public boolean equals(Object obj
) {
53 EntityReference other
= (EntityReference
) obj
;
54 return uuid
.equals(other
.uuid
) && label
.equals(other
.label
);
56 } catch (Exception e
) {