Here you can find the source of listWith(Object aFirstObject)
public static List listWith(Object aFirstObject)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static List listWith(Object aFirstObject) { List list = new ArrayList(); list.add(aFirstObject);/*ww w.j a v a 2 s .c o m*/ return list; } public static List listWith(Object aFirstObject, Object aSecondObject) { List list = listWith(aFirstObject); list.add(aSecondObject); return list; } public static List listWith(Object aFirstObject, Object aSecondObject, Object aThirdObject) { List list = listWith(aFirstObject, aSecondObject); list.add(aThirdObject); return list; } public static List listWith(Object aFirstObject, Object aSecondObject, Object aThirdObject, Object aFourthObject) { List list = listWith(aFirstObject, aSecondObject, aThirdObject); list.add(aFourthObject); return list; } public static List listWith(Object aFirstObject, Object aSecondObject, Object aThirdObject, Object aFourthObject, Object aFifthObject) { List list = listWith(aFirstObject, aSecondObject, aThirdObject, aFourthObject); list.add(aFifthObject); return list; } public static List listWith(Object aFirstObject, Object aSecondObject, Object aThirdObject, Object aFourthObject, Object aFifthObject, Object aSixthObject) { List list = listWith(aFirstObject, aSecondObject, aThirdObject, aFourthObject, aFifthObject); list.add(aSixthObject); return list; } }