static L wrapIntArrayAsImmutableList(int[] l) { ret new RandomAccessAbstractList() { public int size() { ret l.length; } public Int get(int i) { ret l[i]; } }; }