Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 186 for Intersections (0.31 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

                  newRequirement,
                  earlierRequirement),
              intersection(newFeatures, earlierFeatures),
              source);
        }
      }
    
      /** Construct a new {@link java.util.Set} that is the intersection of the given sets. */
      public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) {
        Set<T> result = Helpers.<T>copyToSet(set1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 15:08:35 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ContiguousSet.java

        checkNotNull(domain);
        Range<C> effectiveRange = range;
        try {
          if (!range.hasLowerBound()) {
            effectiveRange = effectiveRange.intersection(Range.atLeast(domain.minValue()));
          }
          if (!range.hasUpperBound()) {
            effectiveRange = effectiveRange.intersection(Range.atMost(domain.maxValue()));
          }
        } catch (NoSuchElementException e) {
          throw new IllegalArgumentException(e);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. pkg/util/sets/set_test.go

    		}
    	})
    }
    
    func TestIntersection(t *testing.T) {
    	s1 := New("a", "b", "d")
    	s2 := New("a", "b", "c")
    	want := New("a", "b")
    
    	t.Run("intersection", func(t *testing.T) {
    		d := s1.Intersection(s2)
    		if !d.Equals(want) {
    			t.Errorf("want %+v, but got %+v", want, d)
    		}
    	})
    
    	t.Run("intersect in replace", func(t *testing.T) {
    		s1c := s1.Copy()
    		d := s1c.IntersectInPlace(s2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/conditions.go

    		// We need to filter down to only ones we actually support
    		intersection := []k8s.RouteGroupKind{}
    		for _, s := range supported {
    			for _, kind := range l.AllowedRoutes.Kinds {
    				if routeGroupKindEqual(s, kind) {
    					intersection = append(intersection, s)
    					break
    				}
    			}
    		}
    		return intersection, len(intersection) == len(l.AllowedRoutes.Kinds)
    	}
    	return supported, true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 13:05:41 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            expect:
            every([1, 2, 3], { it < 4 })
            !every([1, 2, 4], { it < 4 })
            !every([1], { it instanceof String })
            every([], { false })
        }
    
        def "intersection"() {
            expect:
            intersection([collA, collB]) == collC
            where:
            collA           | collB           | collC
            []              | ["a", "b", "c"] | []
            ['a', 'b', 'c'] | ["a", "b", "c"] | ['a', 'b', 'c']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/api/specs/Specs.java

        }
    
        public static <T> Spec<T> convertClosureToSpec(final Closure<?> closure) {
            return new ClosureSpec<>(closure);
        }
    
        /**
         * Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.
         */
        @SafeVarargs
        @SuppressWarnings("varargs")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. pkg/kubelet/apis/config/helpers_test.go

    )
    
    func TestKubeletConfigurationPathFields(t *testing.T) {
    	// ensure the intersection of kubeletConfigurationPathFieldPaths and KubeletConfigurationNonPathFields is empty
    	if i := kubeletConfigurationPathFieldPaths.Intersection(kubeletConfigurationNonPathFieldPaths); len(i) > 0 {
    		t.Fatalf("expect the intersection of kubeletConfigurationPathFieldPaths and "+
    			"KubeletConfigurationNonPathFields to be empty, got:\n%s",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/CachingExcludeFactory.java

        public ExcludeSpec allOf(Set<ExcludeSpec> specs) {
            return caches.getAllOf(new ExcludesKey(specs), key -> delegate.allOf(key.specs));
        }
    
        /**
         * A special key which recognizes the fact union and intersection
         * are commutative.
         */
        private final static class ExcludePair {
            private final ExcludeSpec left;
            private final ExcludeSpec right;
            private final int hashCode;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProcessResourcesIntegrationTest.groovy

                plugins {
                    id 'java'
                }
                sourceSets {
                    main.resources.srcDir 'src/main/java'
                    main.resources.exclude '**/*.kt' // Forces an intersection pattern set to be created behind the scenes
                }
            '''
            createDir('src/main') {
                dir('java') {
                    file('Test.java') << 'class Test {}'
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/abt/avlint32_test.go

    	AXB := tree([]int32{1, 2, 5, 6, 7})
    
    	aib1 := A.Intersection(B, first)
    	assert(t, AIB, aib1, "aib1")
    	if A.Find(3) != aib1.Find(3) {
    		t.Errorf("Failed aliasing/reuse check, A/aib1")
    	}
    	aib2 := A.Intersection(B, second)
    	assert(t, AIB, aib2, "aib2")
    	if B.Find(3) != aib2.Find(3) {
    		t.Errorf("Failed aliasing/reuse check, B/aib2")
    	}
    	aib3 := B.Intersection(A, first)
    	assert(t, AIB, aib3, "aib3")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 11 16:34:41 UTC 2022
    - 20.3K bytes
    - Viewed (0)
Back to top