Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for subRangeMap (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

              }
              RangeMap<Integer, Integer> subRangeMap = rangeMap.subRangeMap(subRange);
              assertEquals(expected, subRangeMap);
              assertEquals(expected.asMapOfRanges(), subRangeMap.asMapOfRanges());
              assertEquals(expected.asDescendingMapOfRanges(), subRangeMap.asDescendingMapOfRanges());
              assertEquals(
                  ImmutableList.copyOf(subRangeMap.asMapOfRanges().entrySet()).reverse(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeRangeMap.java

            }
    
            @Override
            public RangeMap<Comparable<?>, Object> subRangeMap(Range<Comparable<?>> range) {
              checkNotNull(range);
              return this;
            }
          };
    
      private class SubRangeMap implements RangeMap<K, V> {
    
        private final Range<K> subRange;
    
        SubRangeMap(Range<K> subRange) {
          this.subRange = subRange;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeRangeMap.java

            }
    
            @Override
            public RangeMap<Comparable<?>, Object> subRangeMap(Range<Comparable<?>> range) {
              checkNotNull(range);
              return this;
            }
          };
    
      private class SubRangeMap implements RangeMap<K, V> {
    
        private final Range<K> subRange;
    
        SubRangeMap(Range<K> subRange) {
          this.subRange = subRange;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>For example, if {@code rangeMap} had the entries {@code [1, 5] => "foo", (6, 8) => "bar",
       * (10, ∞) => "baz"} then {@code rangeMap.subRangeMap(Range.open(3, 12))} would return a range map
       * with the entries {@code (3, 5] => "foo", (6, 8) => "bar", (10, 12) => "baz"}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        return new ImmutableRangeMap<K, V>(subRanges, values.subList(lowerIndex, upperIndex)) {
          @Override
          public ImmutableRangeMap<K, V> subRangeMap(Range<K> subRange) {
            if (range.isConnected(subRange)) {
              return outer.subRangeMap(subRange.intersection(range));
            } else {
              return ImmutableRangeMap.of();
            }
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>For example, if {@code rangeMap} had the entries {@code [1, 5] => "foo", (6, 8) => "bar",
       * (10, ∞) => "baz"} then {@code rangeMap.subRangeMap(Range.open(3, 12))} would return a range map
       * with the entries {@code (3, 5] => "foo", (6, 8) => "bar", (10, 12) => "baz"}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                  }
                }
    
                ImmutableRangeMap<Integer, Integer> expected = expectedBuilder.build();
                assertEquals(expected, rangeMap.subRangeMap(subRange));
              }
            }
          }
        }
      }
    
      public void testSerialization() {
        ImmutableRangeMap<Integer, Integer> emptyRangeMap = ImmutableRangeMap.of();
    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. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                  }
                }
    
                ImmutableRangeMap<Integer, Integer> expected = expectedBuilder.build();
                assertEquals(expected, rangeMap.subRangeMap(subRange));
              }
            }
          }
        }
      }
    
      public void testSerialization() {
        ImmutableRangeMap<Integer, Integer> emptyRangeMap = ImmutableRangeMap.of();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top