Java Public Recipes
The following code creates an immutable list containing two objects.
import com.google.common.collect.ImmutableList;
List newList = ImmutableList.of(object1, object2);
The following code creates an immutable list containing two objects.
import com.google.common.collect.ImmutableList;
List newList = ImmutableList.of(object1, object2);