Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for orderEntriesByValue (0.22 sec)

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

            builder.orderEntriesByValue(Ordering.natural()).buildOrThrow();
        assertMapEquals(keyOrdered, "four", 4, "one", 1);
        assertMapEquals(valueOrdered, "one", 1, "four", 4);
      }
    
      public void testBuilder_orderEntriesByValue_usedTwiceFails() {
        ImmutableMap.Builder<String, Integer> builder =
            new Builder<String, Integer>().orderEntriesByValue(Ordering.natural());
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

            builder.orderEntriesByValue(Ordering.natural()).build();
        assertMapEquals(keyOrdered, "four", 4, "one", 1);
        assertMapEquals(valueOrdered, "one", 1, "four", 4);
      }
    
      public void testBuilder_orderEntriesByValue_usedTwiceFails() {
        ImmutableBiMap.Builder<String, Integer> builder =
            new Builder<String, Integer>().orderEntriesByValue(Ordering.natural());
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         *
         * @throws IllegalStateException if this method was already called
         * @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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

          super.putAll(entries);
          return this;
        }
    
        @CanIgnoreReturnValue
        public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) {
          super.orderEntriesByValue(valueComparator);
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
          super.combine(other);
          return this;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

         *
         * @throws IllegalStateException if this method was already called
         * @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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

            builder.orderEntriesByValue(Ordering.natural()).buildOrThrow();
        assertMapEquals(keyOrdered, "four", 4, "one", 1);
        assertMapEquals(valueOrdered, "one", 1, "four", 4);
      }
    
      public void testBuilder_orderEntriesByValue_usedTwiceFails() {
        ImmutableMap.Builder<String, Integer> builder =
            new Builder<String, Integer>().orderEntriesByValue(Ordering.natural());
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

         * inserted into the builder, unless {@link #orderEntriesByValue} was called, in which case
         * entries are sorted by value. If a key was added more than once, it appears in iteration order
         * based on the first time it was added, again unless {@link #orderEntriesByValue} was called.
         *
         * <p>In the current implementation, all values associated with a given key are stored in the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMap.java

         * inserted into the builder, unless {@link #orderEntriesByValue} was called, in which case
         * entries are sorted by value. If a key was added more than once, it appears in iteration order
         * based on the first time it was added, again unless {@link #orderEntriesByValue} was called.
         *
         * <p>In the current implementation, all values associated with a given key are stored in the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
          super.combine(other);
          return this;
        }
    
        @Override
        public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) {
          throw new UnsupportedOperationException("Not available on ImmutableSortedMap.Builder");
        }
    
        @Override
        public ImmutableSortedMap<K, V> build() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedMap.java

         */
        @CanIgnoreReturnValue
        @Override
        @Deprecated
        @DoNotCall("Always throws UnsupportedOperationException")
        public final Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) {
          throw new UnsupportedOperationException("Not available on ImmutableSortedMap.Builder");
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top