All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aksw.commons.collection.observable.CollectionChangedEvent Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
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