Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for subMap (0.04 sec)

  1. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public NavigableMap<K, V> subMap(
            K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
          synchronized (mutex) {
            return navigableMap(delegate().subMap(fromKey, fromInclusive, toKey, toInclusive), mutex);
          }
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          return subMap(fromKey, true, toKey, false);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Synchronized.java

        @Override
        public NavigableMap<K, V> subMap(
            K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
          synchronized (mutex) {
            return navigableMap(delegate().subMap(fromKey, fromInclusive, toKey, toInclusive), mutex);
          }
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          return subMap(fromKey, true, toKey, false);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        public void clear() {
          standardClear();
        }
    
        @Override
        public boolean isEmpty() {
          return standardIsEmpty();
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          return standardSubMap(fromKey, toKey);
        }
    
        @Override
        public @Nullable Entry<K, V> lowerEntry(K key) {
          return standardLowerEntry(key);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      }
    
      public void testRowKeyMapSubMap() {
        sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c', "dog", 2, 'd');
        Map<String, Map<Integer, Character>> map = sortedTable.rowMap().subMap("cat", "egg");
        assertEquals(ImmutableMap.of(2, 'd'), map.get("dog"));
        map.clear();
        assertTrue(map.isEmpty());
        assertEquals(ImmutableSet.of("bar", "foo"), sortedTable.rowKeySet());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top