Created
October 6, 2012 00:26
-
-
Save windy1/3843218 to your computer and use it in GitHub Desktop.
SomeComponentEvent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ComponentEvent<T extends Component> { | |
final T component; | |
ComponentEvent(T component) { | |
this.component = component; | |
} | |
T getComponent() { | |
return component; | |
} | |
class MyComponentEvent extends ComponentEvent<MyComponent> { | |
MyComponentEvent(MyComponent component) { | |
super(component); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment