Skip to content

Instantly share code, notes, and snippets.

@ctrueden
Created February 7, 2012 18:28
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 ctrueden/1761121 to your computer and use it in GitHub Desktop.
Save ctrueden/1761121 to your computer and use it in GitHub Desktop.
Typing seems OK here...
//
// OpsTyping.java
//
import net.imglib2.type.numeric.ComplexType;
import net.imglib2.type.numeric.RealType;
public class OpsTyping {
public <V extends ComplexType<V>> void complex(V arg) {
//
}
public <T extends RealType<T>> void real(T arg) {
complex(arg);
}
public <V extends ComplexType<V>> void complexOp(ComplexOp<V> op) {
}
public <T extends RealType<T>> void realOp(RealOp<T> op) {
complexOp(op);
}
public class ComplexOp<V extends ComplexType<V>> { }
public class RealOp<T extends RealType<T>> extends ComplexOp<T> { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment