Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for buildOrThrow (0.93 sec)

  1. guava/src/com/google/common/collect/ImmutableMap.java

         *
         * <p>Prefer the equivalent method {@link #buildOrThrow()} to make it explicit that the method
         * will throw an exception if there are duplicate keys. The {@code build()} method will soon be
         * deprecated.
         *
         * @throws IllegalArgumentException if duplicate keys were added
         */
        public ImmutableMap<K, V> build() {
          return buildOrThrow();
        }
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SparseImmutableTable.java

        }
        this.rowMap = rowBuilder.buildOrThrow();
    
        ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder =
            new ImmutableMap.Builder<>(columns.size());
        for (Entry<C, Map<R, V>> col : columns.entrySet()) {
          columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue()));
        }
        this.columnMap = columnBuilder.buildOrThrow();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         * <p>Prefer the equivalent method {@link #buildOrThrow()} to make it explicit that the method
         * will throw an exception if there are duplicate keys or values. The {@code build()} method
         * will soon be deprecated.
         *
         * @throws IllegalArgumentException if duplicate keys or values were added
         */
        @Override
        public ImmutableBiMap<K, V> build() {
          return buildOrThrow();
        }
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

          hashExpectationsBuilder.put(object, hash);
        }
    
        void replay() {
          checkRecording();
          equivalentExpectations = equivalentExpectationsBuilder.buildOrThrow();
          hashExpectations = hashExpectationsBuilder.buildOrThrow();
        }
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return equivalentExpectations.get(a, b);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

          hashExpectationsBuilder.put(object, hash);
        }
    
        void replay() {
          checkRecording();
          equivalentExpectations = equivalentExpectationsBuilder.buildOrThrow();
          hashExpectations = hashExpectationsBuilder.buildOrThrow();
        }
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return equivalentExpectations.get(a, b);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CollectCollectors.java

            ImmutableMap.Builder<K, V>::new,
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
            ImmutableMap.Builder::combine,
            ImmutableMap.Builder::buildOrThrow);
      }
    
      static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
          Function<? super T, ? extends K> keyFunction,
          Function<? super T, ? extends V> valueFunction,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectCollectors.java

            ImmutableMap.Builder<K, V>::new,
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
            ImmutableMap.Builder::combine,
            ImmutableMap.Builder::buildOrThrow);
      }
    
      static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
          Function<? super T, ? extends K> keyFunction,
          Function<? super T, ? extends V> valueFunction,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

            }
            assertThat(percentiles().indexes(index1, index2).compute(PSEUDORANDOM_DATASET))
                .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
                .containsExactlyEntriesIn(expectedBuilder.buildOrThrow());
          }
        }
      }
    
      public void testPercentiles_indexes_varargsAll_compute_doubleCollection() {
        ArrayList<Integer> indexes = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/QuantilesTest.java

            }
            assertThat(percentiles().indexes(index1, index2).compute(PSEUDORANDOM_DATASET))
                .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
                .containsExactlyEntriesIn(expectedBuilder.buildOrThrow());
          }
        }
      }
    
      public void testPercentiles_indexes_varargsAll_compute_doubleCollection() {
        ArrayList<Integer> indexes = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          if (!list.isEmpty()) {
            builder.put(key, list);
            size += list.size();
          }
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
      }
    
      /** Creates an ImmutableListMultimap from an asMap.entrySet. */
      static <K, V> ImmutableListMultimap<K, V> fromMapBuilderEntries(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top