Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 394 for iterable (0.04 sec)

  1. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        Iterable<Double> iterable = iterable(Collections.<Double>emptySet());
        assertThat(ImmutableDoubleArray.copyOf(iterable)).isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Double> list = Arrays.asList(0.0, 1.0, 3.0);
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(iterable(list));
        list.set(2, 2.0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/PredecessorsFunction.java

       *
       * <p>Some algorithms that operate on a {@code PredecessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
       *
       * <ul>
       *   <li>Non-null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/SuccessorsFunction.java

       *
       * <p>Some algorithms that operate on a {@code SuccessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
       *
       * <ul>
       *   <li>Non-null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       * Returns an iterator that cycles indefinitely over the elements of {@code iterable}.
       *
       * <p>The returned iterator supports {@code remove()} if the provided iterator does. After {@code
       * remove()} is called, subsequent cycles omit the removed element, which is no longer in {@code
       * iterable}. The iterator's {@code hasNext()} method returns {@code true} until {@code iterable}
       * is empty.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

        }
    
        @Override
        public Iterable<V> order(List<V> insertionOrder) {
          K k =
              ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator())
                  .sampleKeys()
                  .e0();
          List<Entry<K, V>> entries = new ArrayList<>();
          for (V v : insertionOrder) {
            entries.add(mapEntry(k, v));
          }
          Iterable<Entry<K, V>> ordered = multimapGenerator.order(entries);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/LineIteratorTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testForEach() throws Exception {
            final StringReader reader = new StringReader("aaa\nbbb\nccc\n");
            for (final String line : LineIterator.iterable(reader)) {
                System.out.println(line);
            }
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        CountingIterable iterable = new CountingIterable();
        List<String> list = ImmutableList.copyOf(iterable);
        assertEquals(asList("a", "b", "a"), list);
      }
    
      public void testCopyOf_plainIterable_iteratesOnce() {
        CountingIterable iterable = new CountingIterable();
        ImmutableList<String> unused = ImmutableList.copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/SuccessorsFunction.java

       *
       * <p>Some algorithms that operate on a {@code SuccessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
       *
       * <ul>
       *   <li>Non-null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.lang.ClassLoaderIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.IOException;
    import java.net.URL;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

      public void testOf_empty() {
        Iterable<String> iterable = MinimalIterable.<String>of();
        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top