Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for valueComparator (0.07 sec)

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

        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());
        assertEquals(Ordering.natural(), multimap.valueComparator());
      }
    
      @J2ktIncompatible
    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. guava/src/com/google/common/collect/ImmutableSetMultimap.java

          @CheckForNull Comparator<? super V> valueComparator, Collection<? extends V> values) {
        return (valueComparator == null)
            ? ImmutableSet.copyOf(values)
            : ImmutableSortedSet.copyOf(valueComparator, values);
      }
    
      private static <V> ImmutableSet<V> emptySet(@CheckForNull Comparator<? super V> valueComparator) {
        return (valueComparator == null)
            ? ImmutableSet.<V>of()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          @CheckForNull Comparator<? super V> valueComparator, Collection<? extends V> values) {
        return (valueComparator == null)
            ? ImmutableSet.copyOf(values)
            : ImmutableSortedSet.copyOf(valueComparator, values);
      }
    
      private static <V> ImmutableSet<V> emptySet(@CheckForNull Comparator<? super V> valueComparator) {
        return (valueComparator == null)
            ? ImmutableSet.<V>of()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        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)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SortedSetMultimapGetTester<K, V>
        extends AbstractMultimapTester<K, V, SortedSetMultimap<K, V>> {
      public void testValueComparator() {
        assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableListMultimap.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) {
          super.orderValuesBy(valueComparator);
          return this;
        }
    
        /** Returns a newly-created immutable list multimap. */
        @Override
        public ImmutableListMultimap<K, V> build() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) {
          super.orderValuesBy(valueComparator);
          return this;
        }
    
        /** Returns a newly-created immutable list multimap. */
        @Override
        public ImmutableListMultimap<K, V> build() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableBiMap.java

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