Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for uniqueIndex (0.09 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Functions.toStringFunction;
    import static com.google.common.collect.Maps.uniqueIndex;
    import static java.util.Arrays.asList;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertThrows(
            NullPointerException.class, () -> fluent(1, 2, 3).uniqueIndex(Functions.constant(null)));
      }
    
      public void testUniqueIndex_nullValue() {
        assertThrows(
            NullPointerException.class,
            () -> {
              ImmutableMap<Object, Integer> unused =
                  fluent(1, null, 2)
                      .uniqueIndex(
                          new Function<Integer, Object>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. schema/relationship.go

    			PkgPath: ownField.StructField.PkgPath,
    			Type:    ownField.StructField.Type,
    			Tag: removeSettingFromTag(appendSettingFromTag(ownField.StructField.Tag, "primaryKey"),
    				"column", "autoincrement", "index", "unique", "uniqueindex"),
    		})
    	}
    
    	for idx, relField := range refForeignFields {
    		joinFieldName := cases.Title(language.Und, cases.NoLower).String(relation.FieldSchema.Name) + relField.Name
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

       * @since 14.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final <K> ImmutableMap<K, @NonNull E> uniqueIndex(Function<? super E, K> keyFunction) {
        return Maps.uniqueIndex((Iterable<@NonNull E>) getDelegate(), keyFunction);
      }
    
      /**
       * Returns an array containing all of the elements from this fluent iterable in iteration order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

      @CanIgnoreReturnValue
      public static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterable<V> values, Function<? super V, K> keyFunction) {
        if (values instanceof Collection) {
          return uniqueIndex(
              values.iterator(),
              keyFunction,
              ImmutableMap.builderWithExpectedSize(((Collection<?>) values).size()));
        }
        return uniqueIndex(values.iterator(), keyFunction);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

      @CanIgnoreReturnValue
      public static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterable<V> values, Function<? super V, K> keyFunction) {
        if (values instanceof Collection) {
          return uniqueIndex(
              values.iterator(),
              keyFunction,
              ImmutableMap.builderWithExpectedSize(((Collection<?>) values).size()));
        }
        return uniqueIndex(values.iterator(), keyFunction);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top