2015-07-14 12:49:46 +00:00
|
|
|
/**
|
|
|
|
* Diese Klasse testet die generierte EmptyClass.class-Datei
|
|
|
|
*/
|
|
|
|
class Test{
|
|
|
|
public static void main(String[] args){
|
2015-09-17 18:57:33 +00:00
|
|
|
new EmptyClass();
|
2015-08-27 11:36:14 +00:00
|
|
|
new Assign();
|
|
|
|
System.out.println(new Return().method());
|
2015-08-27 14:36:19 +00:00
|
|
|
new MethodCall().method();
|
2015-09-17 18:57:33 +00:00
|
|
|
System.out.println(new FieldDeclaration().field);
|
2015-09-16 16:45:45 +00:00
|
|
|
System.out.println(new Runnable().method().apply());
|
2015-09-17 18:57:33 +00:00
|
|
|
Runnable r = new Runnable().method().apply();
|
2015-09-23 13:30:35 +00:00
|
|
|
Test t = new Identity<Test,Test>().op.apply(new Test());
|
|
|
|
System.out.println(t);
|
2015-07-14 12:49:46 +00:00
|
|
|
}
|
|
|
|
}
|
2015-09-23 20:17:41 +00:00
|
|
|
|
|
|
|
class Test2<X>{
|
|
|
|
Fun1<? extends X,? super X> m() {
|
|
|
|
Fun1<? extends X,? super X> f = new Identity<X,X>().op;
|
|
|
|
return f;
|
|
|
|
}
|
|
|
|
public static void main(String[] args){
|
2015-09-28 22:28:59 +00:00
|
|
|
Matrix2<Integer,Integer> m2 = new Matrix2<>();
|
|
|
|
System.out.println(m2.op.apply((Integer x) -> x));
|
2015-09-23 20:17:41 +00:00
|
|
|
}
|
|
|
|
}
|