Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for upTo (0.03 sec)

  1. 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)
  2. 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/ImmutableRangeSetTest.java

        rangesBuilder.add(Range.<Integer>all());
        for (int i = -2; i <= 2; i++) {
          for (BoundType boundType : BoundType.values()) {
            rangesBuilder.add(Range.upTo(i, boundType));
            rangesBuilder.add(Range.downTo(i, boundType));
          }
          for (int j = i + 1; j <= 2; j++) {
            for (BoundType lbType : BoundType.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.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; j <= MAX_BOUND; j++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

      }
    
      @Override
      public SortedMultiset<E> headMultiset(@ParametricNullness E upperBound, BoundType boundType) {
        return new TreeMultiset<>(
            rootReference,
            range.intersect(GeneralRange.upTo(comparator(), upperBound, boundType)),
            header);
      }
    
      @Override
      public SortedMultiset<E> tailMultiset(@ParametricNullness E lowerBound, BoundType boundType) {
        return new TreeMultiset<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top