fa093ca2611da4f32ec1042de1cb9067e2663ee0
[mate.git] / tests / Generics1.java
1 package tests;
2
3 public class Generics1 implements Cmp<Integer> {
4         public Integer a = new Integer(0x1337);
5         public int cmpto(Integer o) {
6                 return a.intValue() - o.intValue();
7         }
8
9         public static Cmp<Integer> sb = new Generics1();
10         public static int lalelu = 0;
11
12         public static void main(String []args) {
13                 Generics1 foo = new Generics1();
14                 System.out.printf("0x%08x\n", foo.cmpto(0x666));
15                 System.out.printf("0x%08x\n", sb.cmpto(0x666));
16         }
17 }
18
19 interface Cmp<T>
20 {
21         int cmpto(T o);
22 }