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

net.sf.javagimmicks.collections.event.cdi.CDINavigableMapEvent 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.NavigableMapEvent;
import net.sf.javagimmicks.event.Observable;

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

* CDI event objects may not have type parameters, so the type information needs * to be erased for the wrapped {@link NavigableMapEvent}. */ public class CDINavigableMapEvent implements NavigableMapEvent { private final NavigableMapEvent _origin; @SuppressWarnings("unchecked") CDINavigableMapEvent(final NavigableMapEvent origin) { _origin = (NavigableMapEvent) origin; } /** * Provides access to the wrapped {@link NavigableMapEvent} * * @return the wrapped {@link NavigableMapEvent} */ public NavigableMapEvent 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