Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.persistence.dto;
10

    
11
import java.io.Serializable;
12
import java.util.Set;
13

    
14
import eu.etaxonomy.cdm.model.common.ICdmBase;
15

    
16
/**
17
 * @author cmathew
18
 * @since 7 Oct 2015
19
 */
20
public class MergeResult<T extends ICdmBase> implements Serializable {
21

    
22
    private static final long serialVersionUID = 4886558003386941487L;
23

    
24
    private T mergedEntity;
25
    private Set<T> newEntities;
26

    
27

    
28

    
29
    public MergeResult(T mergedEntity, Set<T> newEntities) {
30
        this.mergedEntity = mergedEntity;
31
        this.newEntities = newEntities;
32
    }
33

    
34
    public T getMergedEntity() {
35
        return mergedEntity;
36
    }
37
    public void setMergedEntity(T mergedEntity) {
38
        this.mergedEntity = mergedEntity;
39
    }
40
    /**
41
     * @return the newEntities
42
     */
43
    public Set<T> getNewEntities() {
44
        return newEntities;
45
    }
46
    /**
47
     * @param newEntities the newEntities to set
48
     */
49
    public void setNewEntities(Set<T> newEntities) {
50
        this.newEntities = newEntities;
51
    }
52

    
53
}
(12-12/30)