Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 453 for Iterables (0.15 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

      protected ListIteratorTester(
          int steps,
          Iterable<E> elementsToInsert,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          int startIndex) {
        super(steps, elementsToInsert, features, expectedElements, KnownOrder.KNOWN_ORDER, startIndex);
      }
    
      @Override
      protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>> getStimulusValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java

    import java.util.Iterator;
    
    /**
     * Adapts a test iterable generator to give a TestIteratorGenerator.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class DerivedTestIteratorGenerator<E>
        implements TestIteratorGenerator<E>, DerivedGenerator {
      private final TestSubjectGenerator<? extends Iterable<E>> collectionGenerator;
    
      public DerivedTestIteratorGenerator(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        Iterable<Integer> iterable = iterable(Collections.<Integer>emptySet());
        assertThat(ImmutableIntArray.copyOf(iterable)).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Integer> list = Arrays.asList(0, 1, 3);
        ImmutableIntArray iia = ImmutableIntArray.copyOf(iterable(list));
        list.set(2, 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

        PUT_BOOLEAN() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            boolean value = random.nextBoolean();
            for (PrimitiveSink sink : sinks) {
              sink.putBoolean(value);
            }
          }
        },
        PUT_BYTE() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            int value = random.nextInt();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ConverterTest.java

        assertEquals(STR_VAL, STR_TO_LONG.reverse().convert(LONG_VAL));
    
        Iterable<Long> convertedValues = STR_TO_LONG.convertAll(STRINGS);
        assertEquals(LONGS, ImmutableList.copyOf(convertedValues));
      }
    
      public void testConvertAllIsView() {
        List<String> mutableList = Lists.newArrayList("789", "123");
        Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedIterable.java

    /**
     * An {@code Iterable} whose elements are sorted relative to a {@code Comparator}, typically
     * provided at creation time.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    interface SortedIterable<T extends @Nullable Object> extends Iterable<T> {
      /**
       * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 02:13:00 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/SortedIterable.java

    /**
     * An {@code Iterable} whose elements are sorted relative to a {@code Comparator}, typically
     * provided at creation time.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    interface SortedIterable<T extends @Nullable Object> extends Iterable<T> {
      /**
       * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 02:13:00 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.1K bytes
    - Viewed (0)
Back to top