Last active
September 4, 2023 15:10
-
-
Save emmanuelbernard/e59eb4732c6e1a417ecc287398a0bb9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 interface I1<K, V> { | |
V key(K k); | |
} | |
public interface I2<K, V> { | |
V key(K k); | |
} | |
public class C implements I1<String, String>, I2<Long, Long> { | |
@Override | |
public String key(String s) { | |
return null; | |
} | |
@Override | |
public String key(Long aLong) { | |
return null; | |
} | |
} |
This file contains hidden or 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 interface I1<@Foo K, V> { | |
V key(K k); | |
} | |
public interface I2<@Bar K, V> { | |
V key(K k); | |
} | |
public class C implements I1<String, String>, I2<String, String> { | |
@Override | |
public String key(String s) { | |
return null; | |
} | |
@Override | |
public String key(Long aLong) { | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment