Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 559 for range (0.06 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/collect/ContiguousSet.java

       * Range#contains contained} by the range.
       *
       * @throws IllegalArgumentException if neither range nor the domain has a lower bound, or if
       *     neither has an upper bound
       * @since 13.0
       */
      public static <C extends Comparable> ContiguousSet<C> create(
          Range<C> range, DiscreteDomain<C> domain) {
        checkNotNull(range);
        checkNotNull(domain);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top