renamed all modules
This commit is contained in:
19
testdata/src/main/java/interfaces/Runner.java
vendored
Normal file
19
testdata/src/main/java/interfaces/Runner.java
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package interfaces;
|
||||
|
||||
public class Runner {
|
||||
|
||||
public static TheInterface x = new TheImplementation();
|
||||
|
||||
public int runGetValue() {
|
||||
return x.getValue();
|
||||
}
|
||||
|
||||
public String runToString() {
|
||||
return x.toString();
|
||||
}
|
||||
|
||||
public String doit() {
|
||||
return x.doit();
|
||||
}
|
||||
|
||||
}
|
||||
12
testdata/src/main/java/interfaces/TheImplementation.java
vendored
Normal file
12
testdata/src/main/java/interfaces/TheImplementation.java
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package interfaces;
|
||||
|
||||
public class TheImplementation implements TheInterface {
|
||||
|
||||
public int getValue() {
|
||||
return 35;
|
||||
}
|
||||
|
||||
public String doit() {
|
||||
return ""; // filled in later
|
||||
}
|
||||
}
|
||||
12
testdata/src/main/java/interfaces/TheImplementation002.java
vendored
Normal file
12
testdata/src/main/java/interfaces/TheImplementation002.java
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package interfaces;
|
||||
|
||||
public class TheImplementation002 implements TheInterface {
|
||||
|
||||
public int getValue() {
|
||||
return 23;
|
||||
}
|
||||
|
||||
public String doit() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
16
testdata/src/main/java/interfaces/TheImplementation003.java
vendored
Normal file
16
testdata/src/main/java/interfaces/TheImplementation003.java
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package interfaces;
|
||||
|
||||
public class TheImplementation003 implements TheInterface {
|
||||
|
||||
public int getValue() {
|
||||
return 23;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "i am version 3";
|
||||
}
|
||||
|
||||
public String doit() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
21
testdata/src/main/java/interfaces/TheImplementation004.java
vendored
Normal file
21
testdata/src/main/java/interfaces/TheImplementation004.java
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package interfaces;
|
||||
|
||||
public class TheImplementation004 implements TheInterface004 {
|
||||
|
||||
public int getValue() {
|
||||
return 23;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "i am version 3";
|
||||
}
|
||||
|
||||
public String newmethod() {
|
||||
return "oranges";
|
||||
}
|
||||
|
||||
public String doit() {
|
||||
TheInterface004 ti = new TheImplementation004();
|
||||
return ti.newmethod();
|
||||
}
|
||||
}
|
||||
8
testdata/src/main/java/interfaces/TheInterface.java
vendored
Normal file
8
testdata/src/main/java/interfaces/TheInterface.java
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
package interfaces;
|
||||
|
||||
public interface TheInterface {
|
||||
|
||||
int getValue();
|
||||
|
||||
String doit();
|
||||
}
|
||||
8
testdata/src/main/java/interfaces/TheInterface004.java
vendored
Normal file
8
testdata/src/main/java/interfaces/TheInterface004.java
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
package interfaces;
|
||||
|
||||
public interface TheInterface004 {
|
||||
|
||||
int getValue();
|
||||
|
||||
String newmethod();
|
||||
}
|
||||
Reference in New Issue
Block a user