/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ctecinf.event;

import java.awt.AWTEvent;
import java.awt.Event;

/**
 *
 * @author Cássio Conceição
 * @since 11/06/2019
 * @version 1906
 * @see http://ctecinf.com.br/
 */
public class SelectEvent extends AWTEvent {

    private final Object obj;

    public <T> SelectEvent(Object source, int id, T obj) {
        super(new Event(source, id, obj));
        this.obj = obj;
    }

    public <T> T getValue() {
        return (T) obj;
    }
}
