net.sf.javagimmicks.collections.event.NavigableSetEvent 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.collections.event;
import java.util.NavigableSet;
import net.sf.javagimmicks.event.Event;
import net.sf.javagimmicks.event.Observable;
/**
* Represents a change in a {@link Observable} {@link NavigableSet} - like
* {@link ObservableEventSortedSet}.
*/
public interface NavigableSetEvent extends Event>
{
/**
* The possible types of {@link NavigableSetEvent}s.
*/
enum Type
{
/**
* An element was added
*/
ADDED,
/**
* An already contained element was added again
*/
READDED,
/**
* An element was removed
*/
REMOVED
}
/**
* The type of the event
*
* @return the type of the event
* @see Type
*/
Type getType();
/**
* Returns the element that was (re-)added or removed
*
* @return the element that was (re-)added or removed
*/
E getElement();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy