Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for RangeMap (0.06 sec)

  1. guava/src/com/google/common/collect/RangeMap.java

       *
       * @since 22.0
       */
      void putCoalescing(Range<K> range, V value);
    
      /** Puts all the associations from {@code rangeMap} into this range map (optional operation). */
      void putAll(RangeMap<K, ? extends V> rangeMap);
    
      /** Removes all associations from this range map (optional operation). */
      void clear();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RangeMap.java

       *
       * @since 22.0
       */
      void putCoalescing(Range<K> range, V value);
    
      /** Puts all the associations from {@code rangeMap} into this range map (optional operation). */
      void putAll(RangeMap<K, ? extends V> rangeMap);
    
      /** Removes all associations from this range map (optional operation). */
      void clear();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

      }
    
      public void testPutCoalescingSubmapEmpty() {
        RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create();
        rangeMap.put(Range.closedOpen(0, 1), 1);
        rangeMap.put(Range.closedOpen(1, 2), 1);
        assertEquals(
            ImmutableMap.of(Range.closedOpen(0, 1), 1, Range.closedOpen(1, 2), 1),
            rangeMap.asMapOfRanges());
    
    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. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                }
    
                assertEquals(expectedValue, rangeMap.get(i));
              }
            }
          }
        }
      }
    
      public void testSpanEmpty() {
        assertThrows(NoSuchElementException.class, () -> ImmutableRangeMap.of().span());
      }
    
      public void testSpanSingleRange() {
        for (Range<Integer> range : RANGES) {
          RangeMap<Integer, Integer> rangemap =
    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. guava/src/com/google/common/collect/TreeRangeMap.java

        }
    
        @Override
        public void putAll(RangeMap<K, ? extends V> rangeMap) {
          if (rangeMap.asMapOfRanges().isEmpty()) {
            return;
          }
          Range<K> span = rangeMap.span();
          checkArgument(
              subRange.encloses(span),
              "Cannot putAll rangeMap with span %s into a subRangeMap(%s)",
              span,
              subRange);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

      }
    
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> copyOf(
          RangeMap<K, ? extends V> rangeMap) {
        if (rangeMap instanceof ImmutableRangeMap) {
          return (ImmutableRangeMap<K, V>) rangeMap;
        }
        Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges();
        ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(map.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                }
    
                assertEquals(expectedValue, rangeMap.get(i));
              }
            }
          }
        }
      }
    
      public void testSpanEmpty() {
        assertThrows(NoSuchElementException.class, () -> ImmutableRangeMap.of().span());
      }
    
      public void testSpanSingleRange() {
        for (Range<Integer> range : RANGES) {
          RangeMap<Integer, Integer> rangemap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeRangeMap.java

        }
    
        @Override
        public void putAll(RangeMap<K, ? extends V> rangeMap) {
          if (rangeMap.asMapOfRanges().isEmpty()) {
            return;
          }
          Range<K> span = rangeMap.span();
          checkArgument(
              subRange.encloses(span),
              "Cannot putAll rangeMap with span %s into a subRangeMap(%s)",
              span,
              subRange);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/package-info.java

     *   <dd>An extension of {@link java.util.Map} that associates a raw type with an instance of that
     *       type.
     * </dl>
     *
     * <h2>Ranges</h2>
     *
     * <ul>
     *   <li>{@link Range}
     *   <li>{@link RangeMap}
     *   <li>{@link RangeSet}
     *   <li>{@link DiscreteDomain}
     *   <li>{@link ContiguousSet}
     * </ul>
     *
     * <h2>Classes of static utility methods</h2>
     *
     * <ul>
     *   <li>{@link Collections2}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 06 16:29:45 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/package-info.java

     *   <dd>An extension of {@link java.util.Map} that associates a raw type with an instance of that
     *       type.
     * </dl>
     *
     * <h2>Ranges</h2>
     *
     * <ul>
     *   <li>{@link Range}
     *   <li>{@link RangeMap}
     *   <li>{@link RangeSet}
     *   <li>{@link DiscreteDomain}
     *   <li>{@link ContiguousSet}
     * </ul>
     *
     * <h2>Classes of static utility methods</h2>
     *
     * <ul>
     *   <li>{@link Collections2}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 06 16:29:45 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top