Here you can find the source of listOf(final T... items)
public static <T> List<T> listOf(final T... items)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.Collections; import java.util.List; public class Main { public static <T> List<T> listOf(final T... items) { return Collections.unmodifiableList(Arrays.asList(items)); }/*from w w w . j av a2s . co m*/ }