Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 598 for range (0.1 sec)

  1. android/guava/src/com/google/common/collect/Range.java

      }
    
      private static final Range<Comparable> ALL = new Range<>(Cut.belowAll(), Cut.aboveAll());
    
      /**
       * Returns a range that contains every value of type {@code C}.
       *
       * @since 14.0
       */
      @SuppressWarnings("unchecked")
      public static <C extends Comparable<?>> Range<C> all() {
        return (Range) ALL;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Range.java

      }
    
      private static final Range<Comparable> ALL = new Range<>(Cut.belowAll(), Cut.aboveAll());
    
      /**
       * Returns a range that contains every value of type {@code C}.
       *
       * @since 14.0
       */
      @SuppressWarnings("unchecked")
      public static <C extends Comparable<?>> Range<C> all() {
        return (Range) ALL;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

          for (Range<Integer> range2 : RANGES) {
            for (Range<Integer> range3 : RANGES) {
              Map<Integer, Integer> model = Maps.newHashMap();
              putModel(model, range1, 1);
              putModel(model, range2, 2);
              putModel(model, range3, 3);
              RangeMap<Integer, Integer> test = TreeRangeMap.create();
              RangeMap<Integer, Integer> test2 = TreeRangeMap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

              RangeMap<Integer, Integer> rangemap =
                  ImmutableRangeMap.<Integer, Integer>builder().put(range1, 1).put(range2, 2).build();
              assertEquals(range1.span(range2), rangemap.span());
            }
          }
        }
      }
    
      public void testGetEntry() {
        for (Range<Integer> range1 : RANGES) {
          for (Range<Integer> range2 : RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          for (Range<Integer> range2 : ranges) {
            if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) {
              ImmutableRangeSet<Integer> rangeSet =
                  ImmutableRangeSet.<Integer>builder().add(range1).add(range2).build();
              for (Range<Integer> subRange : subRanges) {
                RangeSet<Integer> expected = TreeRangeSet.create();
                for (Range<Integer> range : rangeSet.asRanges()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

              RangeMap<Integer, Integer> rangemap =
                  ImmutableRangeMap.<Integer, Integer>builder().put(range1, 1).put(range2, 2).build();
              assertEquals(range1.span(range2), rangemap.span());
            }
          }
        }
      }
    
      public void testGetEntry() {
        for (Range<Integer> range1 : RANGES) {
          for (Range<Integer> range2 : RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        TreeRangeSet<Integer> set = TreeRangeSet.create();
        Range<Integer> range = Range.closedOpen(0, 5);
        set.subRangeSet(range).add(range);
      }
    
      public void testSubRangeSetReplaceAdd() {
        TreeRangeSet<Integer> set = TreeRangeSet.create();
        Range<Integer> range = Range.closedOpen(0, 5);
        set.add(range);
        set.subRangeSet(range).add(range);
      }
    
      public void testComplement() {
    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. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            // test restricting empty sets
            range1 = VersionRange.createFromVersionSpec("[,1.1],[1.4,]");
            range2 = VersionRange.createFromVersionSpec("[1.2,1.3]");
            range1 = range1.restrict(range2);
            mergedRange = range1.restrict(range2);
            assertNull(mergedRange.getRecommendedVersion(), 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)
  9. guava/src/com/google/common/collect/ImmutableRangeSet.java

       * range set.
       */
      private ImmutableList<Range<C>> intersectRanges(final Range<C> range) {
        if (ranges.isEmpty() || range.isEmpty()) {
          return ImmutableList.of();
        } else if (range.encloses(span())) {
          return ranges;
        }
    
        final int fromIndex;
        if (range.hasLowerBound()) {
          fromIndex =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

            range.intersect(GeneralRange.<@Nullable Integer>range(ORDERING, null, OPEN, 5, CLOSED)));
    
        assertEquals(
            GeneralRange.range(ORDERING, 2, OPEN, 4, OPEN),
            range.intersect(GeneralRange.range(ORDERING, 2, OPEN, 5, CLOSED)));
    
        assertEquals(
            GeneralRange.range(ORDERING, 2, CLOSED, 4, OPEN),
            range.intersect(GeneralRange.range(ORDERING, 1, OPEN, 4, OPEN)));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top