Returns a list backed by an array of primitive int values. The behavior is analogous to Arrays#asList(Object[]). Changes to the list are reflected in the array. The list cannot be extended. @param args Array of primitive int values @return List backed by array
(final int[] args)
| 58 | * @return List backed by array |
| 59 | */ |
| 60 | @Deprecated // to be removed before 2.0 |
| 61 | public static List<Integer> asList(final int[] args) { |
| 62 | return Ints.asList(args); |
| 63 | } |
| 64 | |
| 65 | public ImmutableIntList asImmutable() { |
| 66 | return ImmutableIntList.copyOf(this); |
no outgoing calls