Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 121 for SortedMap (0.57 sec)

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

    import com.google.common.annotations.GwtCompatible;
    import java.util.SortedMap;
    
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class FilteredSortedMapTest extends AbstractFilteredMapTest {
      @Override
      SortedMap<String, Integer> createUnfiltered() {
        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
    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)
  3. guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java

        return orderEntriesByKey(insertionOrder);
      }
    
      @Override
      protected abstract SortedMap<String, String> create(Entry<String, String>[] entries);
    
      @Override
      public SortedMap<String, String> create(Object... entries) {
        return (SortedMap<String, String>) super.create(entries);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. 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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. 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)
  6. guava-tests/test/com/google/common/collect/TreeBasedTableRowMapInterfaceTest.java

    import com.google.common.collect.testing.SortedMapInterfaceTest;
    import java.util.SortedMap;
    
    @GwtCompatible
    public class TreeBasedTableRowMapInterfaceTest extends SortedMapInterfaceTest<String, String> {
      public TreeBasedTableRowMapInterfaceTest() {
        super(false, false, true, true, true);
      }
    
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
    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)
  7. 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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

    import com.google.common.testing.SerializableTester;
    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
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 18 18:06:40 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractNavigableMap.java

      @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
      public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
    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)
  10. 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 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