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

gu.dtalk.event.ItemEvent Maven / Gradle / Ivy

There is a newer version: 0.8.2
Show newest version
package gu.dtalk.event;

import java.util.EventObject;

import gu.dtalk.BaseItem;
import static com.google.common.base.Preconditions.*;

/**
 * 事件父类
 * @author guyadong
 *
 */
public class ItemEvent extends EventObject {

	private static final long serialVersionUID = 5726171993308275693L;

	public ItemEvent(T source) {
		super(checkNotNull(source,"source is null "));
	}
	@SuppressWarnings("unchecked")
	public T item(){
		return (T) getSource();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy