Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 453 for Iterables (0.06 sec)

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

      K[] createKeyArray(int length);
    
      V[] createValueArray(int length);
    
      SampleElements<K> sampleKeys();
    
      SampleElements<V> sampleValues();
    
      Collection<V> createCollection(Iterable<? extends V> values);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java

      K[] createKeyArray(int length);
    
      V[] createValueArray(int length);
    
      SampleElements<K> sampleKeys();
    
      SampleElements<V> sampleValues();
    
      Collection<V> createCollection(Iterable<? extends V> values);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java

    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link ListMultimap#replaceValues(Object, Iterable)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testPresentInstances_callingIteratorTwice() {
        List<Optional<String>> optionals =
            ImmutableList.of(Optional.of("a"), Optional.<String>absent(), Optional.of("c"));
        Iterable<String> onlyPresent = Optional.presentInstances(optionals);
        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

            lastFromForgetMeNot = null;
          }
        }
    
        /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */
        private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) {
          for (Iterator<E> it = elements.iterator(); it.hasNext(); ) {
            E element = it.next();
            if (element == target) {
              it.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

       */
      protected abstract T create(UnhashableObject[] elements);
    
      @Override
      public UnhashableObject[] createArray(int length) {
        return new UnhashableObject[length];
      }
    
      @Override
      public Iterable<UnhashableObject> order(List<UnhashableObject> insertionOrder) {
        return insertionOrder;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/SortedIterables.java

      /**
       * Returns {@code true} if {@code elements} is a sorted collection using an ordering equivalent to
       * {@code comparator}.
       */
      public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) {
        checkNotNull(comparator);
        checkNotNull(elements);
        Comparator<?> comparator2;
        if (elements instanceof SortedSet) {
          comparator2 = comparator((SortedSet<?>) elements);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 30 10:33:07 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * values} is a {@link Collection}. Otherwise it creates a {@link #builder} and uses {@link
       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableIntArray copyOf(Iterable<Integer> values) {
        if (values instanceof Collection) {
          return copyOf((Collection<Integer>) values);
        }
        return builder().addAll(values).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java

    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link ListMultimap#putAll(Object, Iterable)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

       */
      protected abstract T create(UnhashableObject[] elements);
    
      @Override
      public UnhashableObject[] createArray(int length) {
        return new UnhashableObject[length];
      }
    
      @Override
      public Iterable<UnhashableObject> order(List<UnhashableObject> insertionOrder) {
        return insertionOrder;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top