Project

General

Profile

Download (1.28 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 T mergedEntity;
25
    private Set<T> newEntities;
26

    
27

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

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

    
58
}
(2-2/4)