org.javabits.yar.guice.KeyEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yar-guice Show documentation
Show all versions of yar-guice Show documentation
Yar Guice: provide a implementation / integration base on guice
package org.javabits.yar.guice;
import java.util.EventObject;
/**
* TODO comment
* Date: 5/30/13
* Time: 9:29 AM
*
* @author Romain Gilles
*/
public class KeyEvent extends EventObject {
private final T key;
/**
* Constructs a prototypical Event.
*
* @param source The object on which the Event initially occurred.
* @throws IllegalArgumentException
* if source is null.
*/
private KeyEvent(T source) {
super(source);
key = source;
}
public T key() {
return key;
}
public static KeyEvent newKeyEvent(T key) {
return new KeyEvent<>(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy