Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for unmodifiableList (0.17 sec)

  1. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Lists.newArrayListWithCapacity;
    import static java.util.Collections.unmodifiableList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableCollection;
    import com.google.common.collect.Lists;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * <pre>{@code
     * List<String> expectedElements =
     *     Arrays.asList("a", "b", "c", "d", "e");
     * List<String> actualElements =
     *     Collections.unmodifiableList(
     *         Arrays.asList("a", "b", "c", "d", "e"));
     * IteratorTester<String> iteratorTester =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableList.java

      private final List<E> delegate;
      @Nullable E forSerialization;
    
      RegularImmutableList(List<E> delegate) {
        // TODO(cpovirk): avoid redundant unmodifiableList wrapping
        this.delegate = unmodifiableList(delegate);
      }
    
      @Override
      List<E> delegateList() {
        return delegate;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Throwables.java

     * the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Arrays.asList;
    import static java.util.Collections.unmodifiableList;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Throwables.java

     * the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Arrays.asList;
    import static java.util.Collections.unmodifiableList;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * <pre>{@code
     * List<String> expectedElements =
     *     Arrays.asList("a", "b", "c", "d", "e");
     * List<String> actualElements =
     *     Collections.unmodifiableList(
     *         Arrays.asList("a", "b", "c", "d", "e"));
     * IteratorTester<String> iteratorTester =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                    List<String> innerList = new ArrayList<>();
                    Collections.addAll(innerList, elements);
                    return Collections.unmodifiableList(innerList);
                  }
                })
            .named("unmodifiableList/ArrayList")
            .withFeatures(
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionSize.ANY)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 11.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractListMultimap.java

        return Collections.emptyList();
      }
    
      @Override
      <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
          Collection<E> collection) {
        return Collections.unmodifiableList((List<E>) collection);
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        return wrapList(key, (List<V>) collection, null);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractListMultimap.java

        return Collections.emptyList();
      }
    
      @Override
      <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
          Collection<E> collection) {
        return Collections.unmodifiableList((List<E>) collection);
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        return wrapList(key, (List<V>) collection, null);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkPositionIndex;
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Collections.unmodifiableList;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
Back to top