Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 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-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)
  4. 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)
Back to top