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

net.sf.javagimmicks.collections.event.CollectionEvent Maven / Gradle / Ivy

package net.sf.javagimmicks.collections.event;

import java.util.Collection;

public class CollectionEvent
{
   public static enum Type {ADDED, REMOVED};
   
   protected final ObservableEventCollection _source;
   
   protected final Type _type;
   protected final Collection _elements;
   
   public CollectionEvent(ObservableEventCollection source, Type type, Collection elements)
   {
      _source = source;
      _type = type;
      _elements = elements;
   }

   public Type getType()
   {
      return _type;
   }
   
   public Collection getElements()
   {
      return _elements;
   }

   public ObservableEventCollection getSource()
   {
      return _source;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy