Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for upTo (0.04 sec)

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

      }
    
      public void testFromRangeOneEnd() {
        for (BoundType endpointType : BoundType.values()) {
          assertEquals(
              GeneralRange.upTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.upTo(3, endpointType)));
    
          assertEquals(
              GeneralRange.downTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.downTo(3, endpointType)));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

      }
    
      public void testFromRangeOneEnd() {
        for (BoundType endpointType : BoundType.values()) {
          assertEquals(
              GeneralRange.upTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.upTo(3, endpointType)));
    
          assertEquals(
              GeneralRange.downTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.downTo(3, endpointType)));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RangeTest.java

            .addEqualityGroup(Range.atLeast(1), Range.downTo(1, CLOSED))
            .addEqualityGroup(Range.greaterThan(1), Range.downTo(1, OPEN))
            .addEqualityGroup(Range.atMost(7), Range.upTo(7, CLOSED))
            .addEqualityGroup(Range.lessThan(7), Range.upTo(7, OPEN))
            .addEqualityGroup(Range.open(1, 7), Range.range(1, OPEN, 7, OPEN))
            .addEqualityGroup(Range.openClosed(1, 7), Range.range(1, OPEN, 7, CLOSED))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        builder.add(Range.<Integer>all());
    
        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
        // Add two-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (int j = i + 1; j <= MAX_BOUND; j++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        builder.add(Range.<Integer>all());
    
        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
        // Add two-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (int j = i + 1; j <= MAX_BOUND; j++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableRangeSet.java

        ImmutableSortedSet<C> subSet(Range<C> range) {
          return subRangeSet(range).asSet(domain);
        }
    
        @Override
        ImmutableSortedSet<C> headSetImpl(C toElement, boolean inclusive) {
          return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));
        }
    
        @Override
        ImmutableSortedSet<C> subSetImpl(
            C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        queryBuilder.add(Range.<Integer>all());
    
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType boundType : BoundType.values()) {
            queryBuilder.add(Range.upTo(i, boundType));
            queryBuilder.add(Range.downTo(i, boundType));
          }
          queryBuilder.add(Range.singleton(i));
          queryBuilder.add(Range.openClosed(i, i));
          queryBuilder.add(Range.closedOpen(i, i));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  8. cmd/background-newdisks-heal-ops.go

    	if err = z.serverPools[poolIdx].sets[setIdx].healErasureSet(ctx, tracker.QueuedBuckets, tracker); err != nil {
    		return err
    	}
    
    	// if objects have failed healing, we attempt a retry to heal the drive upto 3 times before giving up.
    	if tracker.ItemsFailed > 0 && tracker.RetryAttempts < 4 {
    		tracker.RetryAttempts++
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. cmd/storage-rest-client.go

    			return info, toStorageErr(err)
    		}
    		info = *infop
    		if info.Error != "" {
    			return info, toStorageErr(errors.New(info.Error))
    		}
    		return info, nil
    	} // In all other cases cache the value upto 1sec.
    
    	client.diskInfoCache.InitOnce(time.Second, cachevalue.Opts{},
    		func(ctx context.Context) (info DiskInfo, err error) {
    			ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
    			defer cancel()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Range.java

      /**
       * Returns a range with no lower bound up to the given endpoint, which may be either inclusive
       * (closed) or exclusive (open).
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> upTo(C endpoint, BoundType boundType) {
        switch (boundType) {
          case OPEN:
            return lessThan(endpoint);
          case CLOSED:
            return atMost(endpoint);
        }
        throw new AssertionError();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top