renamed all modules

This commit is contained in:
Andy Clement
2014-01-15 11:36:24 -08:00
parent 342420b2ed
commit ceef61cf98
1055 changed files with 301 additions and 259 deletions

View 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();
}
}

View File

@@ -0,0 +1,12 @@
package interfaces;
public class TheImplementation implements TheInterface {
public int getValue() {
return 35;
}
public String doit() {
return ""; // filled in later
}
}

View File

@@ -0,0 +1,12 @@
package interfaces;
public class TheImplementation002 implements TheInterface {
public int getValue() {
return 23;
}
public String doit() {
return null;
}
}

View 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;
}
}

View 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();
}
}

View File

@@ -0,0 +1,8 @@
package interfaces;
public interface TheInterface {
int getValue();
String doit();
}

View File

@@ -0,0 +1,8 @@
package interfaces;
public interface TheInterface004 {
int getValue();
String newmethod();
}