Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for subMap (0.24 sec)

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

        return Maps.keyOrNull(higherEntry(key));
      }
    
      abstract Iterator<Entry<K, V>> descendingEntryIterator();
    
      @Override
      public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
      public SortedMap<K, V> headMap(@ParametricNullness K toKey) {
        return headMap(toKey, false);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

          } else if (from == Bound.EXCLUSIVE && to == Bound.EXCLUSIVE) {
            return map.subMap(firstExclusive, false, lastExclusive, false);
          } else if (from == Bound.EXCLUSIVE && to == Bound.INCLUSIVE) {
            return map.subMap(firstExclusive, false, lastInclusive, true);
          } else if (from == Bound.INCLUSIVE && to == Bound.INCLUSIVE) {
            return map.subMap(firstInclusive, true, lastInclusive, true);
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeBasedTableRowMapInterfaceTest.java

        table.put("b", "b", "x");
        table.put("b", "c", "y");
        table.put("b", "x", "n");
        table.put("a", "a", "d");
        table.row("b").subMap("c", "x").clear();
        assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n"));
        table.row("b").subMap("b", "y").clear();
        assertEquals(table.row("b"), ImmutableMap.of());
        assertFalse(table.backingMap.containsKey("b"));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 29 15:15:31 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        return createMultimap().asMap().subMap("e", "p");
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
        multimap.put("f", 1);
        multimap.put("f", 2);
        multimap.put("g", 3);
        multimap.put("h", 4);
        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        return createMultimap().asMap().subMap("e", "p");
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
        multimap.put("f", 1);
        multimap.put("f", 2);
        multimap.put("g", 3);
        multimap.put("h", 4);
        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

      }
    
      @Override
      @ParametricNullness
      public K lastKey() {
        return delegate().lastKey();
      }
    
      @Override
      public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) {
        return delegate().subMap(fromKey, toKey);
      }
    
      @Override
      public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
        return delegate().tailMap(fromKey);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. 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 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. 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 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys ranges
       * from {@code fromKey}, inclusive, to {@code toKey}, exclusive.
       *
       * <p>The {@link SortedMap#subMap} documentation states that a submap of a submap throws an {@link
       * IllegalArgumentException} if passed a {@code fromKey} less than an earlier {@code fromKey}.
       * However, this method doesn't throw an exception in that situation, but instead keeps the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  10. 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> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
Back to top