-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNestInterface.java
More file actions
69 lines (54 loc) · 979 Bytes
/
Copy pathNestInterface.java
File metadata and controls
69 lines (54 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* Created by theartiste on 1/3/16.
*/
public class NestInterface {
interface B {
void f();
}
public class BImp implements B {
public void f() {
}
}
private class BImp2 implements B {
public void f() {
}
}
public interface C {
void f();
}
class CImp implements C {
public void f() {
}
}
private interface D {
void f();
}
private class DImp implements D {
public void f() {
}
}
private interface K {
void f();
}
private class KImp implements K {
public void f() {
}
}
public D getD() {
return new DImp();
}
private D dRef;
public void receiveD(D d) {
dRef = d;
dRef.f();
}
interface E {
interface G {
void f();
}
public interface H {
void f();
}
void g();
}
}