/** * Construct a new immutable {@code ListResult} instance. * @param totalCount The value for the {@code totalCount} attribute * @param items The value for the {@code items} attribute * @return An immutable ListResult instance */ public static <T> ListResult<T> of(int totalCount, List<T> items) { return of(totalCount, (Iterable<? extends T>) items); }