Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for subMap (0.18 sec)

  1. android/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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        /**
         * Usually the same as map, but smaller for the headMap(), tailMap(), or subMap() of a
         * SortedAsMap.
         */
        final transient Map<K, Collection<V>> submap;
    
        AsMap(Map<K, Collection<V>> submap) {
          this.submap = submap;
        }
    
        @Override
        protected Set<Entry<K, Collection<V>>> createEntrySet() {
          return new AsMapEntries();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeSet.java

        }
    
        private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) {
          if (window.isConnected(upperBoundWindow)) {
            return new RangesByUpperBound<>(rangesByLowerBound, window.intersection(upperBoundWindow));
          } else {
            return ImmutableSortedMap.of();
          }
        }
    
        @Override
        public NavigableMap<Cut<C>, Range<C>> subMap(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
  4. 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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        Entry<K, V> secondEntry = iterator.next();
        K key = secondEntry.getKey();
        SortedMap<K, V> subMap = map.tailMap(key);
        subMap.remove(key);
        assertNull(subMap.remove(firstEntry.getKey()));
        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        Entry<K, V> secondEntry = iterator.next();
        K key = secondEntry.getKey();
        SortedMap<K, V> subMap = map.tailMap(key);
        subMap.remove(key);
        assertNull(subMap.remove(firstEntry.getKey()));
        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeBasedTableRowMapSubMapTest.java

        TreeBasedTable<String, Integer, Character> table = makeTable();
        populateTable(table);
        return table.rowMap().subMap("b", "x");
      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makeEmptyMap() {
        return makeTable().rowMap().subMap("b", "x");
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "z";
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

        assertEquals(ImmutableMap.of("banana", 6, "dog", 3), filtered.headMap("emu"));
    
        assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog"));
        assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu"));
    
        assertEquals(ImmutableMap.of("dog", 3), filtered.tailMap("cat"));
        assertEquals(ImmutableMap.of("banana", 6, "dog", 3), filtered.tailMap("banana"));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top