Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 97 for unmodifiable (0.11 sec)

  1. guava-tests/test/com/google/common/collect/ListsTest.java

    import static com.google.common.collect.Lists.transform;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.System.arraycopy;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

        }
    
        /**
         * Scope the return type to {@link UnmodifiableIterator} to ensure this is an unmodifiable view.
         *
         * @since 20.0 (present with return type {@link Iterator} since 2.0)
         */
        @Override
        public abstract UnmodifiableIterator<E> iterator();
      }
    
      /**
       * Returns an unmodifiable <b>view</b> of the union of two sets. The returned set contains all
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * could throw during the invocation of that method. This is necessary because, e.g., a call to
       * {@code iterator().remove()} of an unmodifiable list could throw either {@link
       * IllegalStateException} or {@link UnsupportedOperationException}. Note that iterator
       * implementations should always throw one of the exceptions in a {@code PermittedExceptions}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        @Nullable Object[] result = new @Nullable Object[contents.length];
        arraycopy(contents, 0, result, 0, contents.length);
        return result;
      }
    
      /*
       * a "type A" unmodifiable collection freaks out proactively, even if there
       * wasn't going to be any actual work to do anyway
       */
    
      @Override
      public boolean addAll(Collection<? extends E> elementsToAdd) {
        throw up();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        new IteratorTester<String>(
            5, UNMODIFIABLE, singleton("a"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return of("a").iterator();
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~30s)
      public void testIterator_general() {
        new IteratorTester<String>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

    import static com.google.common.collect.Sets.toImmutableEnumSet;
    import static com.google.common.collect.Sets.unmodifiableNavigableSet;
    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.io.ObjectStreamConstants.TC_REFERENCE;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/StandardValueGraph.java

     * AbstractGraphBuilder}.
     *
     * <p>This class maintains a map of nodes to {@link GraphConnections}.
     *
     * <p>Collection-returning accessors return unmodifiable views: the view returned will reflect
     * changes to the graph (if the graph is mutable) but may not be modified by the user.
     *
     * <p>The time complexity of all collection-returning accessors is O(1), since views are returned.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

     *       order)
     * </ul>
     *
     * <p>{@code ValueGraph}s built by this class also guarantee that each collection-returning accessor
     * returns a <b>(live) unmodifiable view</b>; see <a
     * href="https://github.com/google/guava/wiki/GraphsExplained#accessor-behavior">the external
     * documentation</a> for details.
     *
     * <p>Examples of use:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

          @SuppressWarnings("rawtypes") // JDT-based J2KT Java frontend does not permit the direct cast
          Map rawMap = map;
          @SuppressWarnings("unchecked") // covariant casts safe (unmodifiable)
          ImmutableClassToInstanceMap<B> cast = (ImmutableClassToInstanceMap<B>) rawMap;
          return cast;
        }
        return new Builder<B>().putAll(map).build();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * could throw during the invocation of that method. This is necessary because, e.g., a call to
       * {@code iterator().remove()} of an unmodifiable list could throw either {@link
       * IllegalStateException} or {@link UnsupportedOperationException}. Note that iterator
       * implementations should always throw one of the exceptions in a {@code PermittedExceptions}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top