-// $Id$
/**
* Copyright (C) 2015 EDIT
* European Distributed Institute of Taxonomy
/**
* @author cmathew
* @date 7 Apr 2015
- *
*/
public class CdmChangeEvent {
private final Action action;
private final Set<CdmBase> changedObjects;
- private final Class sourceType;
- private Class entityType;
+ private final Class<?> sourceType;
+ private Class<?> entityType;
private Object source;
- public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class sourceType) {
+ public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class<?> sourceType) {
this.action = action;
this.changedObjects = changedObjects;
this.sourceType = sourceType;
}
- public CdmChangeEvent(Action action, CdmBase changedObject, Class sourceType) {
+ public CdmChangeEvent(Action action, CdmBase changedObject, Class<?> sourceType) {
this.action = action;
changedObjects = new HashSet<CdmBase>();
changedObjects.add(changedObject);
this.source = source;
}
- /**
- * @return the action
- */
public Action getAction() {
return action;
}
- /**
- * @return the changedObjects
- */
public Set<? extends CdmBase> getChangedObjects() {
return changedObjects;
}
- /**
- * @return the sourceType
- */
- public Class getSourceType() {
+ public Class<?> getSourceType() {
return sourceType;
}
-
- /**
- * @return the source
- */
public Object getSource() {
return source;
}
- public Class getEntityType() {
+ public Class<?> getEntityType() {
return entityType;
}
public boolean hasChanges() {
return changedObjects != null && !changedObjects.isEmpty();
}
-
}