Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for SortedMap (0.06 sec)

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

          Map<? extends K, ? extends V> map, Comparator<? super K> comparator) {
        boolean sameComparator = false;
        if (map instanceof SortedMap) {
          SortedMap<?, ?> sortedMap = (SortedMap<?, ?>) map;
          Comparator<?> comparator2 = sortedMap.comparator();
          sameComparator =
              (comparator2 == null) ? comparator == NATURAL_ORDER : comparator.equals(comparator2);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.Map.Entry;
    import java.util.SortedMap;
    
    /**
     * Tests representing the contract of {@link SortedMap}. Concrete subclasses of this base class test
     * conformance of concrete {@link SortedMap} subclasses to that contract.
     *
     * @author Jared Levy
     */
    // TODO: Use this class to test classes besides ImmutableSortedMap.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

    import com.google.common.base.Functions;
    import java.util.SortedMap;
    
    /**
     * Tests for {@link Maps#transformValues(SortedMap, Function)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. 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 class TreeRow extends Row implements SortedMap<C, V> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

        SortedMapDifferenceImpl(
            SortedMap<K, V> onlyOnLeft,
            SortedMap<K, V> onlyOnRight,
            SortedMap<K, V> onBoth,
            SortedMap<K, ValueDifference<V>> differences) {
          super(onlyOnLeft, onlyOnRight, onBoth, differences);
        }
    
        @Override
        public SortedMap<K, ValueDifference<V>> entriesDiffering() {
          return (SortedMap<K, ValueDifference<V>>) super.entriesDiffering();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

        SortedMapDifferenceImpl(
            SortedMap<K, V> onlyOnLeft,
            SortedMap<K, V> onlyOnRight,
            SortedMap<K, V> onBoth,
            SortedMap<K, ValueDifference<V>> differences) {
          super(onlyOnLeft, onlyOnRight, onBoth, differences);
        }
    
        @Override
        public SortedMap<K, ValueDifference<V>> entriesDiffering() {
          return (SortedMap<K, ValueDifference<V>>) super.entriesDiffering();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests operations on a SortedMap. Can't be invoked directly; please see
     * {@code SortedMapTestSuiteBuilder}.
     *
     * @author Jesse Wilson
     * @author Louis Wasserman
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. android/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);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top