Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for SortedMap (0.18 sec)

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

      private class SortedAsMap extends AsMap implements SortedMap<K, Collection<V>> {
        SortedAsMap(SortedMap<K, Collection<V>> submap) {
          super(submap);
        }
    
        SortedMap<K, Collection<V>> sortedMap() {
          return (SortedMap<K, Collection<V>>) submap;
        }
    
        @Override
        @CheckForNull
        public Comparator<? super K> comparator() {
          return sortedMap().comparator();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        suite.addTest(
            SortedMapTestSuiteBuilder.using(
                    new TestStringSortedMapGenerator() {
                      @Override
                      protected SortedMap<String, String> create(Entry<String, String>[] entries) {
                        SortedMap<String, String> map = new NonNavigableSortedMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

            return kvMap;
          }
        }
    
        SortedMap<K, V> delegate = newModifiableDelegate(comparator);
        for (Entry<? extends K, ? extends V> entry : map.entrySet()) {
          putEntryWithChecks(delegate, entry);
        }
        return newView(unmodifiableSortedMap(delegate), comparator);
      }
    
      private static <K, V> void putEntryWithChecks(
          SortedMap<K, V> map, Entry<? extends K, ? extends V> entry) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          return delegate().subMap(fromKey, true, toKey, false);
        }
    
        @Override
        public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate().tailMap(fromKey, inclusive);
        }
    
        @Override
        public SortedMap<K, V> tailMap(K fromKey) {
    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. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        SortedMap<Integer, Character> row = sortedTable.row("c");
        assertEquals(2, row.size());
        assertEquals(1, row.tailMap(15).size());
      }
    
      public void testSubRowClearAndPut() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        SortedMap<Integer, Character> row = (SortedMap<Integer, Character>) table.row("foo");
        SortedMap<Integer, Character> subRow = row.tailMap(2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          }
          SortedMap<K, V> map = (SortedMap<K, V>) delegate.create(allEntries.toArray());
    
          return createSubMap(map, firstExclusive, lastExclusive);
        }
    
        /**
         * Calls the smallest subMap overload that filters out the extreme values. This method is
         * overridden in NavigableMapTestSuiteBuilder.
         */
        SortedMap<K, V> createSubMap(SortedMap<K, V> map, K firstExclusive, K lastExclusive) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingNavigableMap.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import java.util.function.BiFunction;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 14.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Unit tests for {@code TreeMultimap} with natural ordering.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A navigable map which forwards all its method calls to another navigable map. Subclasses should
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        ImmutableSortedMap.Builder<String, Integer> zat =
            ImmutableSortedMap.<String, Integer>naturalOrder().put("two", 2).put("three", 3);
        ImmutableSortedMap<String, Integer> sortedMap = zis.combine(zat).build();
        assertMapEquals(sortedMap, "four", 4, "one", 1, "three", 3, "two", 2);
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedMap once CollectorTester is usable.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
Back to top