Last active
September 27, 2017 00:02
-
-
Save stephanenicolas/ac844945d500ed552ddff5b9664379d3 to your computer and use it in GitHub Desktop.
setHeadlineListener uses Generics to trigger target type inference
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
public class HeadLineFragment extends Fragment { | |
public <T> void setHeadlineListener(HeadlineListener<T> listener) { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment