Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for Intersection (0.08 sec)

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

        ContiguousSet<Integer> emptySet = ContiguousSet.closedOpen(2, 2);
        assertEquals(ImmutableSet.of(), set.intersection(emptySet));
        assertEquals(ImmutableSet.of(), emptySet.intersection(set));
        assertEquals(
            ImmutableSet.of(),
            ContiguousSet.create(Range.closed(-5, -1), integers())
                .intersection(ContiguousSet.create(Range.open(3, 64), integers())));
      }
    
      public void testIntersection() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

                  earlierRequirement),
              intersection(newFeatures, earlierFeatures),
              source);
        }
      }
    
      /**
       * Construct a new {@link java.util.Set} that is the intersection of the given sets.
       *
       * @deprecated Use {@link com.google.common.collect.Sets#intersection(Set, Set)} instead.
       */
      @Deprecated
      public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

            && ranges.get(ceilingIndex).isConnected(otherRange)
            && !ranges.get(ceilingIndex).intersection(otherRange).isEmpty()) {
          return true;
        }
        return ceilingIndex > 0
            && ranges.get(ceilingIndex - 1).isConnected(otherRange)
            && !ranges.get(ceilingIndex - 1).intersection(otherRange).isEmpty();
      }
    
      @Override
      public boolean encloses(Range<C> otherRange) {
        int index =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  4. .github/CONTRIBUTING.md

    - Get working code on a personal branch with tests before you submit a PR.
    - OkHttp is a small and light dependency.  Don't introduce new dependencies or major new functionality.
    - OkHttp targets the intersection of RFC correct *and* widely implemented.  Incorrect implementations that are very widely implemented e.g. a bug in Apache, Nginx, Google, Firefox should also be handled.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Mar 17 04:16:26 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Predicates.not;
    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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms2 = HashMultiset.create(asList("a", "b", "a"));
        assertThat(intersection(ms1, ms2)).isEmpty();
      }
    
      public void testIntersectNonemptyEmpty() {
        Multiset<String> ms1 = HashMultiset.create(asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create();
        assertThat(intersection(ms1, ms2)).isEmpty();
      }
    
      public void testSum() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        super(domain);
        this.range = range;
      }
    
      private ContiguousSet<C> intersectionInCurrentDomain(Range<C> other) {
        return range.isConnected(other)
            ? ContiguousSet.create(range.intersection(other), domain)
            : new EmptyContiguousSet<C>(domain);
      }
    
      @Override
      ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          boolean anyOverlaps = false;
          for (Range<Integer> range : subset) {
            boolean overlaps = false;
            for (Range<Integer> other : mutable.asRanges()) {
              if (other.isConnected(range) && !other.intersection(range).isEmpty()) {
                overlaps = true;
                anyOverlaps = true;
                break;
              }
            }
    
            try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

        }
        // add the intersection of CollectionFeature.values() and mapFeatures
        for (CollectionFeature feature : CollectionFeature.values()) {
          if (mapFeatures.contains(feature)) {
            derivedFeatures.add(feature);
          }
        }
        // add the intersection of CollectionSize.values() and mapFeatures
        for (CollectionSize size : CollectionSize.values()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableRangeMap.java

            Range<K> range = entries.get(i).getKey();
            if (i > 0) {
              Range<K> prevRange = entries.get(i - 1).getKey();
              if (range.isConnected(prevRange) && !range.intersection(prevRange).isEmpty()) {
                throw new IllegalArgumentException(
                    "Overlapping ranges: range " + prevRange + " overlaps with entry " + range);
              }
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 14.7K bytes
    - Viewed (0)
Back to top