Returns an unmodifiable list containing the specified first element and backed by the specified array of additional elements. Changes to the rest array will be reflected in the returned list. Unlike Arrays#asList, the returned list is unmodifiable. This is useful when a varargs m
(@Nullable E first, E[] rest)
| 322 | |
| 323 | |
| 324 | public static <E> List<E> asList(@Nullable E first, E[] rest) { |
| 325 | return new OnePlusArrayList<E>(first, rest); |
| 326 | } |
| 327 | |
| 328 | /** @see Lists#asList(Object, Object[]) */ |
| 329 |
no outgoing calls
no test coverage detected