Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Intersection (0.11 sec)

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

        assertEquals(range, range.intersection(range));
    
        assertEquals(range, range.intersection(Range.atMost(4)));
        assertEquals(range, range.intersection(Range.atMost(3)));
        assertEquals(range, range.intersection(Range.atLeast(3)));
        assertEquals(range, range.intersection(Range.atLeast(2)));
    
        assertEquals(Range.closedOpen(3, 3), range.intersection(Range.lessThan(3)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeMap.java

          if (range.isConnected(subRange)) {
            TreeRangeMap.this.remove(range.intersection(subRange));
          }
        }
    
        @Override
        public RangeMap<K, V> subRangeMap(Range<K> range) {
          if (!range.isConnected(subRange)) {
            return emptySubRangeMap();
          } else {
            return TreeRangeMap.this.subRangeMap(range.intersection(subRange));
          }
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeRangeMap.java

          if (subRange.contains(key)) {
            Entry<Range<K>, V> entry = TreeRangeMap.this.getEntry(key);
            if (entry != null) {
              return immutableEntry(entry.getKey().intersection(subRange), entry.getValue());
            }
          }
          return null;
        }
    
        @Override
        public Range<K> span() {
          Cut<K> lowerBound;
          Entry<Cut<K>, RangeMapEntry<K, V>> lowerEntry =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

         * @return the <code>VersionRange</code> that is a restriction of this version range and the
         *         specified version range.
         *         <p>
         *         The restrictions of the returned version range will be an intersection of the restrictions
         *         of this version range and the specified version range if both version ranges have
         *         restrictions. Otherwise, the restrictions on the returned range will be empty.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetsTest.java

                        Set<String> set2 = newHashSet(elements);
                        set2.add(samples().e4());
                        return Sets.intersection(set1, set2);
                      }
                    })
                .named("Sets.intersection")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
Back to top