Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for SortedMap (0.17 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. guava/src/com/google/common/collect/ForwardingSortedMap.java

        extends ForwardingMap<K, V> implements SortedMap<K, V> {
      // TODO(lowasser): identify places where thread safety is actually lost
    
      /** Constructor for use by subclasses. */
      protected ForwardingSortedMap() {}
    
      @Override
      protected abstract SortedMap<K, V> delegate();
    
      @Override
      @CheckForNull
      public Comparator<? super K> comparator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/SortedMapDifference.java

        extends MapDifference<K, V> {
    
      @Override
      SortedMap<K, V> entriesOnlyOnLeft();
    
      @Override
      SortedMap<K, V> entriesOnlyOnRight();
    
      @Override
      SortedMap<K, V> entriesInCommon();
    
      @Override
      SortedMap<K, ValueDifference<V>> entriesDiffering();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 04 13:28:27 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RegularImmutableSortedMapMapInterfaceTest.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.SortedMap;
    
    @GwtCompatible
    public class RegularImmutableSortedMapMapInterfaceTest
        extends AbstractImmutableSortedMapMapInterfaceTest<String, Integer> {
      @Override
      protected SortedMap<String, Integer> makeEmptyMap() {
        return ImmutableSortedMap.of();
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 17 01:34:55 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/ReserializedSafeTreeMapMapInterfaceTest.java

    import java.util.NavigableMap;
    import java.util.SortedMap;
    
    @GwtIncompatible // SerializableTester
    public class ReserializedSafeTreeMapMapInterfaceTest
        extends SortedMapInterfaceTest<String, Integer> {
      public ReserializedSafeTreeMapMapInterfaceTest() {
        super(false, true, true, true, true);
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

      @Override
      protected SortedMap<String, Integer> makeEmptyMap() {
        return new SimpleForwardingSortedMap<>(
            new TreeMap<String, Integer>(Ordering.<String>natural().nullsFirst()));
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
        final SortedMap<String, Integer> sortedMap = makeEmptyMap();
        sortedMap.put("one", 1);
        sortedMap.put("two", 2);
        sortedMap.put("three", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. android/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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top