Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 453 for Iterable (0.13 sec)

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

      }
    
      /**
       * Returns an equivalence over iterables based on the equivalence of their elements. More
       * specifically, two iterables are considered equivalent if they both contain the same number of
       * elements, and each pair of corresponding elements is equivalent according to {@code this}. Null
       * iterables are equivalent to one another.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

       * instance.
       */
      private final Map<Type, Integer> emptyInstanceGenerated = new HashMap<>();
    
      final <T> void addSampleInstances(Class<T> type, Iterable<? extends T> instances) {
        sampleInstances.putAll(checkNotNull(type), checkNotNull(instances));
      }
    
      /**
       * Returns a fresh instance for {@code type} if possible. The returned instance could be:
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(),
            new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(),
            new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

        checkNotNull(loader);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) throws Exception {
            return loader.load(key);
          }
    
          @Override
          public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception {
            Map<K, V> result = Maps.newHashMap(); // allow nulls
            for (K key : keys) {
              result.put(key, load(key));
            }
            return result;
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

    import com.google.common.collect.testing.features.MapFeature;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@link Multimap#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: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements());
      }
    
      private void runIteratorTest(
          Set<IteratorFeature> features, IteratorTester.KnownOrder knownOrder, Iterable<E> elements) {
        new IteratorTester<E>(
            Platform.collectionIteratorTesterNumIterations(), features, elements, knownOrder) {
          @Override
          protected Iterator<E> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/SubtypeTester.java

     *
     * <pre>{@code
     * class MySubtypeTests extends SubtypeTester {
     *   @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true)
     *   public <T> Iterable<? extends T> listIsSubtypeOfIterable(List<T> list) {
     *     return isSubtype(list);
     *   }
     *
     *   @TestSubtype
     *   public List<String> intListIsNotSubtypeOfStringList(List<Integer> intList) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      private Entry<E> a;
      private Entry<E> b;
      private Entry<E> c;
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T> SortedMultiset<T> cast(Multiset<T> iterable) {
        return (SortedMultiset<T>) iterable;
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        sortedMultiset = cast(getMultiset());
        entries =
            copyToList(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class ComparatorsTest extends TestCase {
      public void testLexicographical() {
        Comparator<String> comparator = Ordering.natural();
        Comparator<Iterable<String>> lexy = Comparators.lexicographical(comparator);
    
        ImmutableList<String> empty = ImmutableList.of();
        ImmutableList<String> a = ImmutableList.of("a");
        ImmutableList<String> aa = ImmutableList.of("a", "a");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top