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

net.sf.javagimmicks.collections.event.cdi.CDIMapEvent Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
package net.sf.javagimmicks.collections.event.cdi;

import net.sf.javagimmicks.collections.event.MapEvent;
import net.sf.javagimmicks.event.Observable;

/**
 * A CDI compatible wrapper around a {@link MapEvent}.
 * 

* CDI event objects may not have type parameters, so the type information needs * to be erased for the wrapped {@link MapEvent}. */ public class CDIMapEvent implements MapEvent { private final MapEvent _origin; @SuppressWarnings("unchecked") CDIMapEvent(final MapEvent origin) { _origin = (MapEvent) origin; } /** * Provides access to the wrapped {@link MapEvent} * * @return the wrapped {@link MapEvent} */ public MapEvent getWrappedEvent() { return _origin; } @Override public Observable> getSource() { return _origin.getSource(); } @Override public Type getType() { return _origin.getType(); } @Override public Object getKey() { return _origin.getKey(); } @Override public Object getValue() { return _origin.getValue(); } @Override public Object getNewValue() { return _origin.getNewValue(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy