Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 91 for varargs (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k");
        assertEquals(Lists.newArrayList("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"), list);
      }
    
      // Varargs versions
    
      public void testCreation_twelveElements() {
        List<String> list =
            ImmutableList.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l");
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Joiner.java

    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An object which joins pieces of text (specified as an array, {@link Iterable}, varargs or even a
     * {@link Map}) with a separator. It either appends the results to an {@link Appendable} or returns
     * them as a {@link String}. Example:
     *
     * {@snippet :
     * Joiner joiner = Joiner.on("; ").skipNulls();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k");
        assertEquals(Lists.newArrayList("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"), list);
      }
    
      // Varargs versions
    
      public void testCreation_twelveElements() {
        List<String> list =
            ImmutableList.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l");
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.toArray(longs)).isEqualTo(array);
        assertThat(Doubles.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        double[] array = {0.0, 1.0};
        List<Double> list = Doubles.asList(array);
        list.set(0, 2.0);
        assertThat(array).isEqualTo(new double[] {2.0, 1.0});
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

          E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E e11) {
        return construct(e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11);
      }
    
      // These go up to eleven. After that, you just get the varargs form, and
      // whatever warnings might come along with it. :(
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.toArray(floats)).isEqualTo(array);
        assertThat(Ints.toArray(longs)).isEqualTo(array);
        assertThat(Ints.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        int[] array = {(int) 0, (int) 1};
        List<Integer> list = Ints.asList(array);
        list.set(0, (int) 2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(Shorts.toArray(floats)).isEqualTo(array);
        assertThat(Shorts.toArray(longs)).isEqualTo(array);
        assertThat(Shorts.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        short[] array = {(short) 0, (short) 1};
        List<Short> list = Shorts.asList(array);
        list.set(0, (short) 2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/Stats.java

     *   <li>If all the values you want to summarize are already known, use the appropriate {@code
     *       Stats.of} factory method below. Primitive arrays, iterables and iterators of any kind of
     *       {@code Number}, and primitive varargs are supported.
     *   <li>Or, to avoid storing up all the data first, create a {@link StatsAccumulator} instance,
     *       feed values to it as you get them, then call {@link StatsAccumulator#snapshot}.
     * </ul>
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/FluentIterable.java

          @Override
          public Iterator<T> iterator() {
            return Iterators.concat(Iterators.transform(inputs.iterator(), Iterable::iterator));
          }
        };
      }
    
      /** Concatenates a varargs array of iterables without making a defensive copy of the array. */
      private static <T extends @Nullable Object> FluentIterable<T> concatNoDefensiveCopy(
          Iterable<? extends T>... inputs) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

          E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E e11) {
        return construct(e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11);
      }
    
      // These go up to eleven. After that, you just get the varargs form, and
      // whatever warnings might come along with it. :(
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
Back to top