Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for subMap (0.04 sec)

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

        SortedMap<String, Integer> subMap = map.subMap("a", "b");
        assertTrue(subMap instanceof SynchronizedSortedMap);
        assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
      }
    
      public void testSubMap_k_b_k_b() {
        NavigableMap<String, Integer> map = create();
        NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
        assertTrue(subMap instanceof SynchronizedNavigableMap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
    
        @Override
        public Entry<K, V>[] createArray(int length) {
          return delegate.createArray(length);
        }
      }
    
      /** Two bounds (from and to) define how to build a subMap. */
      public enum Bound {
        INCLUSIVE,
        EXCLUSIVE,
        NO_BOUND;
      }
    
      public static class SortedSetSubsetTestSetGenerator<E extends @Nullable Object>
          implements TestSortedSetGenerator<E> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

        Set<Feature<?>> keySetFeatures = computeCommonDerivedCollectionFeatures(mapFeatures);
    
        // TODO(lowasser): make this trigger only if the map is a submap
        // currently, the KeySetGenerator won't work properly for a subset of a keyset of a submap
        keySetFeatures.add(CollectionFeature.SUBSET_VIEW);
        if (mapFeatures.contains(MapFeature.ALLOWS_NULL_KEYS)) {
          keySetFeatures.add(CollectionFeature.ALLOWS_NULL_VALUES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

        }
        return headMap(toKey);
      }
    
      public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) {
        checkNotNull(fromKey);
        checkNotNull(toKey);
        checkArgument(comparator.compare(fromKey, toKey) <= 0);
        return newView(sortedDelegate.subMap(fromKey, toKey));
      }
    
      ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        checkNotNull(fromKey);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeBasedTable.java

          return o != null
              && (lowerBound == null || compare(lowerBound, o) <= 0)
              && (upperBound == null || compare(upperBound, o) > 0);
        }
    
        @Override
        public SortedMap<C, V> subMap(C fromKey, C toKey) {
          checkArgument(rangeContains(checkNotNull(fromKey)) && rangeContains(checkNotNull(toKey)));
          return new TreeRow(rowKey, fromKey, toKey);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeRangeMap.java

            putRangeMapEntry(
                rangeToRemove.upperBound,
                rangeMapEntry.getUpperBound(),
                mapEntryAboveToTruncate.getValue().getValue());
          }
        }
        entriesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear();
      }
    
      private void split(Cut<K> cut) {
        /*
         * The comments for this method will use | to indicate the cut point and ( ) to indicate the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                    allEntries.addAll(normalValues);
                    SortedMultiset<E> multiset =
                        (SortedMultiset<E>) delegate.create(allEntries.toArray());
    
                    // call the smallest subMap overload that filters out the extreme
                    // values
                    if (from == Bound.INCLUSIVE) {
                      multiset = multiset.tailMultiset(firstInclusive, BoundType.CLOSED);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        assertEquals(ImmutableMap.of("google", googleValues, "foo", fooValues), asMap.headMap("h"));
        assertEquals(ImmutableMap.of("google", googleValues), asMap.subMap("g", "h"));
      }
    
      public void testTailSetClear() {
        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        multimap.put("a", 1);
        multimap.put("a", 11);
        multimap.put("b", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

       * Compares strings in natural order except that null comes immediately before a given value. This
       * works better than Ordering.natural().nullsFirst() because, if null comes before all other
       * values, it lies outside the submap/submultiset ranges we test, and the variety of tests that
       * exercise null handling fail on those subcollections.
       */
      public abstract static class NullsBefore implements Comparator<@Nullable String>, Serializable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeMap.java

            putRangeMapEntry(
                rangeToRemove.upperBound,
                rangeMapEntry.getUpperBound(),
                mapEntryAboveToTruncate.getValue().getValue());
          }
        }
        entriesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear();
      }
    
      @Override
      public Map<Range<K>, V> asMapOfRanges() {
        return new AsMapOfRanges(entriesByLowerBound.values());
      }
    
      @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)
Back to top