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

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

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

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