Skip to content

Instantly share code, notes, and snippets.

@moagrius
Created August 8, 2016 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moagrius/1fc0a85c290e021efe4e643c797776b9 to your computer and use it in GitHub Desktop.
Save moagrius/1fc0a85c290e021efe4e643c797776b9 to your computer and use it in GitHub Desktop.
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