Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for immutableCopy (0.05 sec)

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

      public void testImmutableCopy_empty() {
        assertThat(union(emptySet(), emptySet()).immutableCopy()).isEmpty();
        assertThat(intersection(newHashSet(1, 2), newHashSet(3, 4)).immutableCopy()).isEmpty();
        assertThat(difference(newHashSet(1, 2), newHashSet(1, 2)).immutableCopy()).isEmpty();
        assertThat(symmetricDifference(newHashSet(1, 2), newHashSet(1, 2)).immutableCopy()).isEmpty();
      }
    
      public void testImmutableCopy() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

                      : new MutatedOnQueryList<>(
                          transform(infiniteSetsFromStartIndex, ImmutableList::copyOf));
              Set<String> immutableCopy;
              try {
                immutableCopy = copyOf(input);
              } catch (RuntimeException e) {
                throw new RuntimeException(
                    Strings.lenientFormat(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       * stable. There is usually no reason to retain a reference of type {@code SetView}; typically,
       * you either use it as a plain {@link Set}, or immediately invoke {@link #immutableCopy} or
       * {@link #copyInto} and forget the {@code SetView} itself.
       *
       * @since 2.0
       */
      public abstract static class SetView<E extends @Nullable Object> extends AbstractSet<E> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top