Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 618 for iterables (0.06 seconds)

  1. guava/src/com/google/common/base/Verify.java

          throw new VerifyException(lenientFormat(errorMessageTemplate, errorMessageArgs));
        }
        return reference;
      }
    
      // TODO(kevinb): consider <T> T verifySingleton(Iterable<T>) to take over for
      // Iterables.getOnlyElement()
    
      private Verify() {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableMultimap.java

         *     is null. The builder is left in an invalid state.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          if (key == null) {
            throw new NullPointerException("null key in entry: null=" + Iterables.toString(values));
          }
          Iterator<? extends V> valuesItr = values.iterator();
          if (!valuesItr.hasNext()) {
            return this;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 28.1K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        Iterables.addAll(sortedCopy, elements);
        return copyOfSortedEntries(comparator, sortedCopy.entrySet());
      }
    
      /**
       * Returns an immutable sorted multiset containing the elements of a sorted multiset, sorted by
       * the same {@code Comparator}. That behavior differs from {@link #copyOf(Iterable)}, which always
       * uses the natural ordering of the elements.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 29.5K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Throwables.java

       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
       * Iterables.filter(Throwables.getCausalChain(e), IOException.class));
       * </pre>
       *
       * @param throwable the non-null {@code Throwable} to extract causes from
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            assertThrows(CancellationException.class, () -> CallerClass2.get(future));
        List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
        assertFalse(Iterables.any(stackTrace, hasClassName(CallerClass1.class)));
        assertTrue(Iterables.any(stackTrace, hasClassName(CallerClass2.class)));
    
        // See AbstractFutureCancellationCauseTest for how to set causes.
        assertThat(expected).hasCauseThat().isNull();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            assertThrows(CancellationException.class, () -> CallerClass2.get(future));
        List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
        assertFalse(Iterables.any(stackTrace, hasClassName(CallerClass1.class)));
        assertTrue(Iterables.any(stackTrace, hasClassName(CallerClass2.class)));
    
        // See AbstractFutureCancellationCauseTest for how to set causes.
        assertThat(expected).hasCauseThat().isNull();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Throwables.java

       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
       * Iterables.filter(Throwables.getCausalChain(e), IOException.class));
       * </pre>
       *
       * @param throwable the non-null {@code Throwable} to extract causes from
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableBiMap.java

       * entries in the same order as the original iterable.
       *
       * @throws IllegalArgumentException if two keys have the same value or two values have the same
       *     key
       * @throws NullPointerException if any key, value, or entry is null
       * @since 19.0
       */
      public static <K, V> ImmutableBiMap<K, V> copyOf(
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableMultimap.java

         *     is null. The builder is left in an invalid state.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          if (key == null) {
            throw new NullPointerException("null key in entry: null=" + Iterables.toString(values));
          }
          Iterator<? extends V> valuesItr = values.iterator();
          if (!valuesItr.hasNext()) {
            return this;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 27.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/hash/Hashing.java

       * functions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}.
       *
       * @since 19.0
       */
      public static HashFunction concatenating(Iterable<HashFunction> hashFunctions) {
        checkNotNull(hashFunctions);
        // We can't use Iterables.toArray() here because there's no hash->collect dependency
        List<HashFunction> list = new ArrayList<>();
        for (HashFunction hashFunction : hashFunctions) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 29.8K bytes
    - Click Count (0)
Back to Top