|
What this is
Other links
The source code
package p;
import java.util.Collections;
import java.util.Map;
class A extends Sup<String> {
public A(Map<String, Integer> map) {
method(Collections.<String, Integer>emptyMap(/*nada*/));
method2(Collections.<String, Integer>emptyMap(/*nada*/));
method3(Collections.<String, Integer>emptyMap(/*nada*/));
new A(Collections.<String, Integer>emptyMap(/*nada*/));
super.sup(Collections.<String, Integer>emptyMap(/*nada*/));
Map<String, Integer> emptyMap2= Collections.emptyMap(/*nada*/);
emptyMap2= Collections.emptyMap(/*nada*/);
Object o= Collections.emptyMap(/*nada*/);
Map<? extends String, ?> emptyMap3= Collections.emptyMap(/*nada*/);
Integer first= Collections.<String, Integer>emptyMap(/*nada*/).values().iterator().next();
}
void method(Map<String, Integer> map) { }
void method2(Map<? extends String, ?> map) { }
void method3(Object map) { }
}
class Sup<S> {
<A extends S, B> void sup(Map map) {}
}
|
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.