Created
April 12, 2016 21:11
-
-
Save keweishang/a45a026a38e2edaf9bba989bb59c47ef to your computer and use it in GitHub Desktop.
Compiled version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListFactory { | |
public ListFactory() { | |
super(); | |
} | |
public static List newInstance(final int[] numbers) { | |
return new ListFactory$1(numbers); | |
} | |
} | |
class ListFactory$1 extends AbstractList { | |
/*synthetic*/ final int[] val$numbers; | |
ListFactory$1(/*synthetic*/ final int[] val$numbers) { | |
this.val$numbers = val$numbers; | |
super(); | |
} | |
@Override() | |
public Integer get(int index) { | |
return Integer.valueOf(val$numbers[index]); | |
} | |
@Override() | |
public int size() { | |
return val$numbers.length; | |
} | |
@Override() | |
/*synthetic*/ public Object get(/*synthetic*/ int index) { | |
return this.get(index); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment