Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 453 for Iterable (0.17 sec)

  1. android/guava/src/com/google/common/io/MoreFiles.java

       * <p>If the {@link Path} passed to one of the traversal methods does not exist or is not a
       * directory, no exception will be thrown and the returned {@link Iterable} will contain a single
       * element: that path.
       *
       * <p>{@link DirectoryIteratorException} may be thrown when iterating {@link Iterable} instances
       * created by this traverser if an {@link IOException} is thrown by a call to {@link
       * #listFiles(Path)}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/MoreFiles.java

       * <p>If the {@link Path} passed to one of the traversal methods does not exist or is not a
       * directory, no exception will be thrown and the returned {@link Iterable} will contain a single
       * element: that path.
       *
       * <p>{@link DirectoryIteratorException} may be thrown when iterating {@link Iterable} instances
       * created by this traverser if an {@link IOException} is thrown by a call to {@link
       * #listFiles(Path)}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableTable.java

          return parameterizedTable;
        } else {
          return copyOf(table.cellSet());
        }
      }
    
      static <R, C, V> ImmutableTable<R, C, V> copyOf(
          Iterable<? extends Cell<? extends R, ? extends C, ? extends V>> cells) {
        ImmutableTable.Builder<R, C, V> builder = ImmutableTable.builder();
        for (Cell<? extends R, ? extends C, ? extends V> cell : cells) {
          builder.put(cell);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(),
            new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(PeekingIterator.class, Iterators.peekingIterator(ImmutableSet.of().iterator()))
              .put(ListIterator.class, ImmutableList.of().listIterator())
              .put(Iterable.class, ImmutableSet.of())
              .put(Collection.class, ImmutableList.of())
              .put(ImmutableCollection.class, ImmutableList.of())
              .put(List.class, ImmutableList.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/Stats.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public static Stats of(Iterable<? extends Number> values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertEquals(0, emptyConcat.size());
      }
    
      public void testConcat_infiniteIterable() throws IOException {
        ByteSource source = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        Iterable<ByteSource> cycle = Iterables.cycle(ImmutableList.of(source));
        ByteSource concatenated = ByteSource.concat(cycle);
    
        byte[] expected = {0, 1, 2, 3, 0, 1, 2, 3};
        assertArrayEquals(expected, concatenated.slice(0, 8).read());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      private static final ImmutableList<Double> FINITE_TOLERANCE_CANDIDATES =
          ImmutableList.of(-0.0, 0.0, 1.0, 100.0, 10000.0, Double.MAX_VALUE);
    
      private static final Iterable<Double> TOLERANCE_CANDIDATES =
          Iterables.concat(FINITE_TOLERANCE_CANDIDATES, ImmutableList.of(Double.POSITIVE_INFINITY));
    
      private static final List<Double> BAD_TOLERANCE_CANDIDATES =
          Doubles.asList(
              -Double.MIN_VALUE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #putAll(K, Collection<V>)
        try {
          multimap.putAll(sampleKey, sampleValueAsCollection);
          fail("putAll(K, Iterable) succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #putAll(Multimap<K, V>)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top