Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 280 for Iterable (0.16 sec)

  1. android/guava/src/com/google/common/base/Joiner.java

          @Nullable Object... rest)
          throws IOException {
        return appendTo(appendable, iterable(first, second, rest));
      }
    
      /**
       * Appends the string representation of each of {@code parts}, using the previously configured
       * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable,
       * Iterable)}, except that it does not throw {@link IOException}.
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Collections2.java

       *     original iterable.
       * @throws NullPointerException if the specified iterable is null or has any null elements.
       * @since 12.0
       */
      public static <E extends Comparable<? super E>> Collection<List<E>> orderedPermutations(
          Iterable<E> elements) {
        return orderedPermutations(elements, Ordering.natural());
      }
    
      /**
       * Returns a {@link Collection} of all the permutations of the specified {@link Iterable} using
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      public void testCopyOf_iterable_notCollection_empty() {
        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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testToString() {
        assertThat(EMPTY_STATS_VARARGS.toString()).isEqualTo("Stats{count=0}");
        assertThat(MANY_VALUES_STATS_ITERABLE.toString())
            .isEqualTo(
                "Stats{count="
                    + MANY_VALUES_STATS_ITERABLE.count()
                    + ", mean="
                    + MANY_VALUES_STATS_ITERABLE.mean()
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        assertThat(iia.asList()).containsExactly(0L, 1L, 3L).inOrder();
      }
    
      public void testCopyOf_iterable_notCollection_empty() {
        Iterable<Long> iterable = iterable(Collections.<Long>emptySet());
        assertThat(ImmutableLongArray.copyOf(iterable)).isSameInstanceAs(ImmutableLongArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Long> list = Arrays.asList(0L, 1L, 3L);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      }
    
      private static class CountingIterable implements Iterable<String> {
        int count = 0;
    
        @Override
        public Iterator<String> iterator() {
          count++;
          return Iterators.forArray("a", "b", "a");
        }
      }
    
      public void testCopyOf_plainIterable() {
        CountingIterable iterable = new CountingIterable();
        Set<String> set = copyOf(iterable);
        assertEquals(2, set.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      }
    
      private static class CountingIterable implements Iterable<String> {
        int count = 0;
    
        @Override
        public Iterator<String> iterator() {
          count++;
          return Iterators.forArray("a", "b", "a");
        }
      }
    
      public void testCopyOf_plainIterable() {
        CountingIterable iterable = new CountingIterable();
        Set<String> set = copyOf(iterable);
        assertEquals(2, set.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar

    <clinit>(); } org/hamcrest/core/AllOf.class package org.hamcrest.core; public synchronized class AllOf extends org.hamcrest.DiagnosingMatcher { private final Iterable matchers; public void AllOf(Iterable); public boolean matches(Object, org.hamcrest.Description); public void describeTo(org.hamcrest.Description); public static org.hamcrest.Matcher allOf(Iterable); public static transient org.hamcrest.Matcher allOf(org.hamcrest.Matcher[]); public static org.hamcrest.Matcher allOf(org.hamcrest.Matcher, org.hamcrest.Matcher);...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 44K bytes
    - Viewed (0)
  9. 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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TopKSelector.java

     * create the {@code TopKSelector} instance.
     *
     * <p>If your input data is available as an {@link Iterable} or {@link Iterator}, prefer {@link
     * Ordering#leastOf(Iterable, int)}, which provides the same implementation with an interface
     * tailored to that use case.
     *
     * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)},
     * offering expected O(n + k log k) performance (worst case O(n log k)) for n calls to {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top