com.zipwhip.concurrent.ObserverAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zipwhip-api Show documentation
Show all versions of zipwhip-api Show documentation
Java client to support applications powered by the Zipwhip Cloud
The newest version!
package com.zipwhip.concurrent;
import com.zipwhip.events.Observer;
/**
* Created with IntelliJ IDEA.
* User: Michael
* Date: 9/10/12
* Time: 6:16 PM
* To change this template use File | Settings | File Templates.
*/
public class ObserverAdapter implements Observer {
private final Observer observer;
public ObserverAdapter(Observer observer) {
this.observer = observer;
if (this.observer == null) {
throw new IllegalArgumentException("Observer cannot be null!");
}
}
@Override
public void notify(Object sender, T item) {
observer.notify(sender, item);
}
public Observer getObserver() {
return observer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy