net.sf.javagimmicks.collections8.event.CollectionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
package net.sf.javagimmicks.collections8.event;
import java.util.Collection;
import net.sf.javagimmicks.event.Event;
import net.sf.javagimmicks.event.Observable;
/**
* Represents a change in a {@link Observable} {@link Collection} - like
* {@link ObservableEventCollection}.
*/
public interface CollectionEvent extends Event>
{
/**
* The possible types of {@link CollectionEvent}s.
*/
enum Type
{
/**
* One ore more elements were added
*/
ADDED,
/**
* One or more elements were removed
*/
REMOVED
}
/**
* The type of the event
*
* @return the type of the event
* @see Type
*/
Type getType();
/**
* Returns the elements that were added or removed
*
* @return the elements that were added or removed
*/
Collection getElements();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy