Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for puts (0.15 sec)

  1. android/guava/src/com/google/common/collect/Multisets.java

        return (Multiset<T>) iterable;
      }
    
      /**
       * Returns a copy of {@code multiset} as an {@link ImmutableMultiset} whose iteration order puts
       * the highest count first, with ties broken by the iteration order of the original multiset.
       *
       * @since 11.0
       */
      public static <E> ImmutableMultiset<E> copyHighestCountFirst(Multiset<E> multiset) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) {
        ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder();
        builder.put(k1, v1);
        builder.put(k2, v2);
        builder.put(k3, v3);
        builder.put(k4, v4);
        builder.put(k5, v5);
        return builder.build();
      }
    
      // looking for of() with > 5 entries? Use the builder instead.
    
      /** Returns a new {@link Builder}. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        HashMultimap<K, V> multimap = HashMultimap.create();
        multimap.put(key, value);
        return multimap;
      }
    
      @Generates
      static <K, V> LinkedHashMultimap<K, V> generateLinkedHashMultimap(
          @Nullable K key, @Nullable V value) {
        LinkedHashMultimap<K, V> multimap = LinkedHashMultimap.create();
        multimap.put(key, value);
        return multimap;
      }
    
      @Generates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       *
       * <pre>{@code
       * static final ImmutableSortedMap<Integer, String> INT_TO_WORD =
       *     new ImmutableSortedMap.Builder<Integer, String>(Ordering.natural())
       *         .put(1, "one")
       *         .put(2, "two")
       *         .put(3, "three")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even
       * more convenient.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Types.java

                // OK: the method is accessible to us anyway. The setAccessible call is only for
                // unusual execution environments where that might not be true.
              }
              builder.put(method.getName(), method);
            }
          }
          typeVariableMethods = builder.buildKeepingLast();
        }
    
        private final TypeVariableImpl<?> typeVariableImpl;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * buildOrThrow() will still throw as if the duplicates had not been eliminated. And the exception
       * message must mention two values that were associated with the duplicate key in two different
       * calls to Builder.put (though we don't really care *which* two values if there were more than
       * two). These considerations lead us to have a field of type DuplicateKey in the Builder, which
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

         * Builder} and its comparator.
         */
        @Override
        public ImmutableSortedSet<E> build() {
          @SuppressWarnings("unchecked") // we're careful to put only E's in here
          E[] contentsArray = (E[]) contents;
          ImmutableSortedSet<E> result = construct(comparator, size, contentsArray);
          this.size = result.size(); // we eliminated duplicates in-place in contentsArray
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>Java 8+ users:</b> If passing a single element {@code e}, the {@code Stream} equivalent
       * of this method is {@code Stream.generate(() -> e)}. Otherwise, put the elements in a collection
       * and use {@code Stream.generate(() -> collection).flatMap(Collection::stream)}.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterable<T> cycle(T... elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

         * put more than once, {@link #buildOrThrow} will fail, while {@link #buildKeepingLast} will
         * keep the last value put for that key.
         *
         * @since 11.0
         */
        @CanIgnoreReturnValue
        public Builder<K, V> put(Entry<? extends K, ? extends V> entry) {
          return put(entry.getKey(), entry.getValue());
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        /**
         * Associates the specified range with the specified value.
         *
         * @throws IllegalArgumentException if {@code range} is empty
         */
        @CanIgnoreReturnValue
        public Builder<K, V> put(Range<K> range, V value) {
          checkNotNull(range);
          checkNotNull(value);
          checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range);
          entries.add(Maps.immutableEntry(range, value));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top