net.sf.seide.message.JoinEventCollection Maven / Gradle / Ivy
The newest version!
package net.sf.seide.message;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import net.sf.seide.event.Event;
import net.sf.seide.support.Beta;
import net.sf.seide.support.Internal;
@Beta
@Internal
public class JoinEventCollection
implements EventCollection {
protected final Collection events;
protected final Message targetMessage;
public JoinEventCollection(Message targetMessage, Collection events) {
if (events != null && !events.isEmpty()) {
this.events = Collections.unmodifiableCollection(new LinkedList(events));
} else {
this.events = null;
}
this.targetMessage = targetMessage;
}
public Collection getEvents() {
return this.events;
}
public Message getTargetMessage() {
return this.targetMessage;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy