Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for Range (0.03 sec)

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

        assertTrue(range.encloses(range));
        assertTrue(range.encloses(Range.open(2, 4)));
        assertTrue(range.encloses(Range.open(3, 5)));
        assertTrue(range.encloses(Range.closed(3, 4)));
    
        assertFalse(range.encloses(Range.openClosed(2, 5)));
        assertFalse(range.encloses(Range.closedOpen(2, 5)));
        assertFalse(range.encloses(Range.closed(1, 4)));
        assertFalse(range.encloses(Range.closed(3, 6)));
    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. android/guava/src/com/google/common/collect/TreeRangeMap.java

          put(range, value);
          return;
        }
    
        Range<K> coalescedRange = coalescedRange(range, checkNotNull(value));
        put(coalescedRange, value);
      }
    
      /** Computes the coalesced range for the given range+value - does not mutate the map. */
      private Range<K> coalescedRange(Range<K> range, V value) {
        Range<K> coalescedRange = range;
        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
    - 22.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      /**
       * Returns an immutable range set containing the specified single range. If {@link Range#isEmpty()
       * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}.
       */
      public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) {
        checkNotNull(range);
        if (range.isEmpty()) {
          return of();
        } else if (range.equals(Range.all())) {
          return all();
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? immutableEntry(range, values.get(index)) : null;
        }
      }
    
      @Override
      public Range<K> span() {
        if (ranges.isEmpty()) {
          throw new NoSuchElementException();
        }
        Range<K> firstRange = ranges.get(0);
        Range<K> lastRange = ranges.get(ranges.size() - 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            assertNull(range.getRecommendedVersion(), CHECK_VERSION_RECOMMENDATION);
            assertFalse(range.isSelectedVersionKnown(artifact), CHECK_SELECTED_VERSION_KNOWN);
            assertNull(range.getSelectedVersion(artifact), CHECK_SELECTED_VERSION);
    
            range = VersionRange.createFromVersionSpec("1.0");
            assertEquals("1.0", range.getRecommendedVersion().toString(), CHECK_VERSION_RECOMMENDATION);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionRangeTest.java

            VersionRange range = parseValid("(1,3)");
            assertNotContains(range, "1");
            assertContains(range, "2-SNAPSHOT");
            assertNotContains(range, "3");
            assertEquals(range, parseValid(range.toString()));
        }
    
        @Test
        void testSingleVersion() {
            VersionRange range = parseValid("[1]");
            assertContains(range, "1");
            assertEquals(range, parseValid(range.toString()));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/TreeRangeMap.java

          put(range, value);
          return;
        }
    
        Range<K> coalescedRange = coalescedRange(range, checkNotNull(value));
        put(coalescedRange, value);
      }
    
      /** Computes the coalesced range for the given range+value - does not mutate the map. */
      private Range<K> coalescedRange(Range<K> range, V value) {
        Range<K> coalescedRange = range;
        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)
  8. cmd/erasure-healing-common.go

    	dataErrsByDisk = make(map[int][]int, len(onlineDisks))
    	for i := range onlineDisks {
    		dataErrsByDisk[i] = make([]int, len(latestMeta.Parts))
    	}
    
    	dataErrsByPart = make(map[int][]int, len(latestMeta.Parts))
    	for i := range latestMeta.Parts {
    		dataErrsByPart[i] = make([]int, len(onlineDisks))
    	}
    
    	inconsistent := 0
    	for i, meta := range partsMetadata {
    		if !meta.IsValid() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSortedSet.of(4), Sets.subSet(set, Range.open(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.open(3, 7)));
        assertEquals(empty, Sets.subSet(set, Range.open(20, 30)));
    
        assertEquals(set, Sets.subSet(set, Range.openClosed(0, 12)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.openClosed(0, 4)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. istioctl/pkg/describe/describe.go

    	svcHost := extendFQDN(fmt.Sprintf("%s.%s", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace))
    	for _, dest := range route.Route {
    		fqdn := string(model.ResolveShortnameToFQDN(dest.Destination.Host, config.Meta{Namespace: vs.Namespace}))
    		if extendFQDN(fqdn) == svcHost {
    			match = true
    		}
    	}
    
    	if match {
    		for _, trafficMatch := range route.Match {
    			facts = append(facts, trafficMatch.String())
    		}
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
Back to top