Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for keyComparator (0.09 sec)

  1. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        assertSame(Ordering.natural(), copyFromSorted.keyComparator());
        assertSame(Ordering.natural(), copyFromSorted.valueComparator());
        assertSame(Ordering.natural(), copyFromSorted.get(1.0).comparator());
      }
    
      public void testComparators() {
        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        assertEquals(Ordering.natural(), multimap.keyComparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        final @Nullable Comparator<? super K> keyComparator;
    
        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertThat(copy.values()).containsExactly(7, 3, 1, null, 0, 6, 2).inOrder();
        assertThat(copy.keySet()).containsExactly(null, "tree", "google").inOrder();
        assertEquals(multimap.keyComparator(), copy.keyComparator());
        assertEquals(multimap.valueComparator(), copy.valueComparator());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        final @Nullable Comparator<? super K> keyComparator;
    
        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SortedLists.java

          List<E> list,
          Function<? super E, K> keyFunction,
          @ParametricNullness K key,
          Comparator<? super K> keyComparator,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        return binarySearch(
            transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultimap.java

         * Specifies the ordering of the generated multimap's keys.
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) {
          this.keyComparator = checkNotNull(keyComparator);
          return this;
        }
    
        /**
         * Specifies the ordering of the generated multimap's values for each key.
         *
         * @since 8.0
         */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSetMultimap.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) {
          super.orderKeysBy(keyComparator);
          return this;
        }
    
        /**
         * Specifies the ordering of the generated multimap's values for each key.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) {
          super.orderKeysBy(keyComparator);
          return this;
        }
    
        /**
         * Specifies the ordering of the generated multimap's values for each key.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/SortedLists.java

          List<E> list,
          Function<? super E, K> keyFunction,
          @ParametricNullness K key,
          Comparator<? super K> keyComparator,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        return binarySearch(
            transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) {
          super.orderKeysBy(keyComparator);
          return this;
        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top