Project

General

Profile

« Previous | Next » 

Revision 2661173a

Added by Andreas Müller almost 4 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmChangeEvent.java
16 16
/**
17 17
 * @author cmathew
18 18
 * @date 7 Apr 2015
19
 *
20 19
 */
21 20
public class CdmChangeEvent {
22 21

  
......
28 27

  
29 28
    private final Action action;
30 29
    private final Set<CdmBase> changedObjects;
31
    private final Class sourceType;
32
    private Class entityType;
30
    private final Class<?> sourceType;
31
    private Class<?> entityType;
33 32
    private Object source;
34 33

  
35
    public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class sourceType) {
34
    public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class<?> sourceType) {
36 35
        this.action = action;
37 36
        this.changedObjects = changedObjects;
38 37
        this.sourceType = sourceType;
39 38
    }
40 39

  
41
    public CdmChangeEvent(Action action, CdmBase changedObject, Class sourceType) {
40
    public CdmChangeEvent(Action action, CdmBase changedObject, Class<?> sourceType) {
42 41
        this.action = action;
43 42
        changedObjects = new HashSet<CdmBase>();
44 43
        changedObjects.add(changedObject);
......
55 54
        this.source = source;
56 55
    }
57 56

  
58
    /**
59
     * @return the action
60
     */
61 57
    public Action getAction() {
62 58
        return action;
63 59
    }
64 60

  
65
    /**
66
     * @return the changedObjects
67
     */
68 61
    public Set<? extends CdmBase> getChangedObjects() {
69 62
        return changedObjects;
70 63
    }
71 64

  
72
    /**
73
     * @return the sourceType
74
     */
75
    public Class getSourceType() {
65
    public Class<?> getSourceType() {
76 66
        return sourceType;
77 67
    }
78 68

  
79

  
80
    /**
81
     * @return the source
82
     */
83 69
    public Object getSource() {
84 70
        return source;
85 71
    }
86 72

  
87
    public Class getEntityType() {
73
    public Class<?> getEntityType() {
88 74
        return entityType;
89 75
    }
90 76

  
91 77
    public boolean hasChanges() {
92 78
        return changedObjects != null && !changedObjects.isEmpty();
93 79
    }
94

  
95 80
}

Also available in: Unified diff