-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathITest.java
59 lines (54 loc) · 1.25 KB
/
ITest.java
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
package interface_fields;
/** èíòåðôåéñ äëÿ òåñòà */
public interface ITest {
/** public static final by default */
String determinant=new String(" determinant ");
/** public static by default <br />
* ITest$DynamicTest.class
* */
class DynamicTest{
/** ITest$DynamicTest$DynamicTestInner.class */
class DynamicTestInner{
public int getTestInner(){
return 0;
}
}
int intValue;
private String dynamicString;
public int getIntValue(){
/** ITest$DynamicTest$1.class*/
ITest test=new ITest(){
@Override
public Object getObject() {
/** ITest$DynamicTest$1$1.class */
ITest testInner=new ITest(){
@Override
public Object getObject() {
return "implementation into inner class";
}
};
return testInner.getObject();
}
};
System.out.println("DynamicTest#getIntValue:"+test.getObject());
return intValue;
}
public String getStringValue(){
return this.dynamicString;
}
}
/** public static as default */
static class StaticTest{
String staticValue;
public String getStringValue(){
return this.staticValue;
}
}
static class StaticTest2{
String staticValue2;
public String getStringValue(){
return this.staticValue2;
}
}
Object getObject();
}