Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for unionOf (0.03 sec)

  1. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      /**
       * Returns a new range set consisting of the union of this range set and {@code other}.
       *
       * <p>This is essentially the same as {@code TreeRangeSet.create(this).addAll(other)} except it
       * returns an {@code ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> union(RangeSet<C> other) {
        return unionOf(Iterables.concat(asRanges(), other.asRanges()));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        assertMinSize(union(emptySet(), emptySet()), 0);
        assertMinSize(union(setSize(2), setSize(3)), 3);
        assertMinSize(union(setSize(3), setSize(2)), 3);
        assertMinSize(union(setSizeRange(10, 20), setSizeRange(11, 12)), 11);
        assertMinSize(union(setSizeRange(11, 12), setSizeRange(10, 20)), 11);
      }
    
      public void testUnion_maxSize() {
        assertMaxSize(union(emptySet(), emptySet()), 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

    import static com.google.common.collect.Multisets.difference;
    import static com.google.common.collect.Multisets.intersection;
    import static com.google.common.collect.Multisets.sum;
    import static com.google.common.collect.Multisets.union;
    import static com.google.common.collect.Multisets.unmodifiableMultiset;
    import static java.util.Arrays.asList;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

    import static com.google.common.collect.Multisets.difference;
    import static com.google.common.collect.Multisets.intersection;
    import static com.google.common.collect.Multisets.sum;
    import static com.google.common.collect.Multisets.union;
    import static com.google.common.collect.Multisets.unmodifiableMultiset;
    import static java.util.Arrays.asList;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms2 = HashMultiset.create(asList("a", "b", "b", "c"));
        assertThat(union(ms1, ms2)).containsExactly("a", "a", "b", "b", "c");
      }
    
      public void testUnionEqualMultisets() {
        Multiset<String> ms1 = HashMultiset.create(asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create(asList("a", "b", "a"));
        assertEquals(ms1, union(ms1, ms2));
      }
    
      public void testUnionEmptyNonempty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/Network.java

      //
      // Element-level accessors
      //
    
      /**
       * Returns a live view of the nodes which have an incident edge in common with {@code node} in
       * this graph.
       *
       * <p>This is equal to the union of {@link #predecessors(Object)} and {@link #successors(Object)}.
       *
       * <p>If {@code node} is removed from the network after this method is called, the {@code Set}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
      }
    
      // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE.
      @J2ktIncompatible
      public void testContainsAll_typeMismatch() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
      }
    
      // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE.
      @J2ktIncompatible
      public void testContainsAll_typeMismatch() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

         */
        static int maxSize(Set<?> set) {
          return set instanceof SetView ? ((SetView<?>) set).maxSize() : set.size();
        }
      }
    
      /**
       * Returns an unmodifiable <b>view</b> of the union of two sets. The returned set contains all
       * elements that are contained in either backing set. Iterating over the returned set iterates
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        }
    
        // Each of the values added to the map should either still be there, or have seen a removal
        // notification.
        assertEquals(expectedKeys, Sets.union(cache.asMap().keySet(), removalNotifications.keySet()));
        assertTrue(Sets.intersection(cache.asMap().keySet(), removalNotifications.keySet()).isEmpty());
        threadPool.shutdown();
        threadPool.awaitTermination(300, SECONDS);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
Back to top