blob: 6f4a89389a275982cd078c5c48ccb303ac13e64d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
public class Anonymous {
private int count = 0;
public Object produce() {
final int id = count++;
return new Object() {
@Override
public String toString() {
return "anonymous_" + id;
}
};
}
}
|