Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for sortedMap (1.24 sec)

  1. 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
        public @Nullable Comparator<? super K> comparator() {
          return sortedMap().comparator();
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeBasedTable.java

       * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table}
       * interface.
       *
       * @since 10.0 (<a href="https://github.com/google/guava/wiki/Compatibility" >mostly
       *     source-compatible</a> since 7.0)
       */
      @Override
      public SortedMap<C, V> row(R rowKey) {
        return new TreeRow(rowKey);
      }
    
      private final class TreeRow extends Row implements SortedMap<C, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

            TestSortedMapGenerator<K, V> delegate, Bound to, Bound from) {
          super(delegate, to, from);
        }
    
        @Override
        NavigableMap<K, V> createSubMap(SortedMap<K, V> sortedMap, K firstExclusive, K lastExclusive) {
          NavigableMap<K, V> map = (NavigableMap<K, V>) sortedMap;
          if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {
            return map.headMap(lastInclusive, true);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeBasedTable.java

       * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table}
       * interface.
       *
       * @since 10.0 (<a href="https://github.com/google/guava/wiki/Compatibility" >mostly
       *     source-compatible</a> since 7.0)
       */
      @Override
      public SortedMap<C, V> row(R rowKey) {
        return new TreeRow(rowKey);
      }
    
      private final class TreeRow extends Row implements SortedMap<C, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

            .testForwarding(
                SortedMap.class,
                new Function<SortedMap, SortedMap>() {
                  @Override
                  public SortedMap apply(SortedMap delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        SortedMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  6. android/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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

     *
     * @author Hayward Chan
     */
    public final class ImmutableSortedMap<K, V> extends ForwardingImmutableMap<K, V>
        implements SortedMap<K, V> {
    
      @SuppressWarnings("unchecked")
      static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      private final transient SortedMap<K, V> sortedDelegate;
    
      // The comparator used by this map.  It's the same as that of sortedDelegate,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        public K firstKey() {
          return standardFirstKey();
        }
    
        @Override
        public SortedMap<K, V> headMap(K toKey) {
          return standardHeadMap(toKey);
        }
    
        @Override
        public K lastKey() {
          return standardLastKey();
        }
    
        @Override
        public SortedMap<K, V> tailMap(K fromKey) {
          return standardTailMap(fromKey);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

    import com.google.common.testing.SerializableTester;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.SortedMap;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Tests for SafeTreeMap.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

    import com.google.common.collect.testing.TestStringListGenerator;
    import com.google.common.collect.testing.TestStringSortedMapGenerator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.SortedMap;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Generators of sorted maps and derived collections.
     *
     * @author Kevin Bourrillion
     * @author Jesse Wilson
     * @author Jared Levy
     * @author Hayward Chan
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top