Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2015 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.persistence.dto;
11

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

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

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

    
24
    private static final long serialVersionUID = 4886558003386941487L;
25

    
26
    private T mergedEntity;
27
    private Set<T> newEntities;
28

    
29

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

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

    
60
}
(2-2/4)