1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2018 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.api.service.dto;
|
11
|
|
12
|
import java.util.Set;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.description.TaxonDescription;
|
15
|
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
|
16
|
|
17
|
/**
|
18
|
* @author pplitzner
|
19
|
* @since 16.04.2018
|
20
|
*
|
21
|
*/
|
22
|
public class TaxonRowWrapperDTO extends RowWrapperDTO<TaxonDescription> {
|
23
|
|
24
|
private static final long serialVersionUID = 5198447592554976471L;
|
25
|
|
26
|
Set<DescriptionBaseDto> taxonDescriptions;
|
27
|
|
28
|
public TaxonRowWrapperDTO(DescriptionBaseDto description, TaxonNodeDto taxonNode, Set<DescriptionBaseDto> taxonDescriptions) {
|
29
|
super(description, taxonNode);
|
30
|
this.taxonDescriptions = taxonDescriptions;
|
31
|
|
32
|
}
|
33
|
|
34
|
public Set<DescriptionBaseDto> getTaxonDescriptions() {
|
35
|
return taxonDescriptions;
|
36
|
}
|
37
|
|
38
|
|
39
|
public void setTaxonDescriptions(Set<DescriptionBaseDto> taxonDescriptions) {
|
40
|
this.taxonDescriptions = taxonDescriptions;
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
public boolean equals(Object obj) {
|
45
|
if (obj instanceof TaxonRowWrapperDTO){
|
46
|
return ((TaxonRowWrapperDTO)obj).getDescription().getDescriptionUuid().equals(this.getDescription().getDescriptionUuid());
|
47
|
} else {
|
48
|
return false;
|
49
|
}
|
50
|
}
|
51
|
|
52
|
}
|