Home | History | Annotate | Download | only in collect

Lines Matching defs:of

6  * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41 * <p>Unlike {@link Collections#unmodifiableList}, which is a <i>view</i> of a
42 * separate collection that can still change, an instance of {@code
45 * ("constant lists") and also lets you easily make a "defensive copy" of a list
49 * it has no public or protected constructors. Thus, instances of this type are
72 * and maintainability of your code.
76 public static <E> ImmutableList<E> of() {
84 * maintainability of your code.
88 public static <E> ImmutableList<E> of(E element) {
97 public static <E> ImmutableList<E> of(E e1, E e2) {
106 public static <E> ImmutableList<E> of(E e1, E e2, E e3) {
115 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) {
124 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) {
133 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5, E e6) {
142 public static <E> ImmutableList<E> of(
152 public static <E> ImmutableList<E> of(
162 public static <E> ImmutableList<E> of(
172 public static <E> ImmutableList<E> of(
182 public static <E> ImmutableList<E> of(
196 public static <E> ImmutableList<E> of(
222 * @throws NullPointerException if any of {@code elements} is null
240 * containing each of the strings in {@code list}, while
241 * ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>}
248 * @throws NullPointerException if any of {@code elements} is null
264 * @throws NullPointerException if any of {@code elements} is null
269 return of();
273 return of(first);
285 * @throws NullPointerException if any of {@code elements} is null
291 return ImmutableList.of();
322 return of();
374 * Returns an immutable list of the elements between the specified {@code
385 return of();
387 return of(get(fromIndex));
394 * Called by the default implementation of {@link #subList} when {@code
502 * Returns a view of this immutable list in reverse order. For example, {@code
503 * ImmutableList.of(1, 2, 3).reverse()} is equivalent to {@code
504 * ImmutableList.of(3, 2, 1)}.
506 * @return a view of this immutable list in reverse order
626 * elements of the ones created before it.
657 * Adds each element of {@code elements} to the {@code ImmutableList}.
670 * Adds each element of {@code elements} to the {@code ImmutableList}.
683 * Adds each element of {@code elements} to the {@code ImmutableList}.
696 * Returns a newly-created {@code ImmutableList} based on the contents of