/** * Creates a memory-, CPU- and cache-efficient immutable list from an * existing list. The list is always copied. * * @param t Array of members of list * @param <T> Element type * @return List containing the given members */ public static <T> List<T> of(List<T> t) { return of_(t); }
public static <T extends Comparable> ComparableList<T> ofComparable( List<T> t) { return of_(t); }
/** * Creates a memory-, CPU- and cache-efficient immutable list from an * existing list. The list is always copied. * * @param t Array of members of list * @param <T> Element type * @return List containing the given members */ public static <T> List<T> of(List<T> t) { return of_(t); }
public static <T extends Comparable> ComparableList<T> ofComparable( List<T> t) { return of_(t); }