Created
August 8, 2016 18:04
-
-
Save moagrius/1fc0a85c290e021efe4e643c797776b9 to your computer and use it in GitHub Desktop.
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
package com.qozix.messages; | |
/** | |
* Created by michaeldunn on 8/8/16. | |
*/ | |
public abstract class Actor<T> { | |
public abstract void react(T t); | |
@SuppressWarnings("unchecked") | |
void translateAndReact(Object object) { | |
react((T) object); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment