Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,036 for range (0.05 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. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
        // test that connected ranges are coalesced
        for (int i = 0; i + 1 < asRanges.size(); i++) {
          Range<C> range1 = asRanges.get(i);
          Range<C> range2 = asRanges.get(i + 1);
          assertFalse(range1.isConnected(range2));
        }
    
        // test that there are no empty ranges
        for (Range<C> range : asRanges) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RangeSet.java

       * range sets a and b, the result of {@code a.add(range)} is that {@code a} will be the minimal
       * range set for which both {@code a.enclosesAll(b)} and {@code a.encloses(range)}.
       *
       * <p>Note that {@code range} will be {@linkplain Range#span(Range) coalesced} with any ranges in
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top