org.aksw.commons.collection.observable.CollectionChangedEvent Maven / Gradle / Ivy
package org.aksw.commons.collection.observable;
import java.beans.PropertyChangeEvent;
import java.util.Collection;
public abstract class CollectionChangedEvent
extends PropertyChangeEvent
{
public CollectionChangedEvent(Object source, String propertyName, Object oldValue, Object newValue) {
super(source, propertyName, oldValue, newValue);
}
public abstract Collection getAdditions();
public abstract Collection getDeletions();
public abstract Collection getRefreshes();
public boolean hasChanges() {
boolean result = !(getAdditions().isEmpty() && getDeletions().isEmpty() && getRefreshes().isEmpty());
return result;
}
// added items
// removed items
// refreshed items
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy