Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 453 for Iterables (0.05 sec)

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

       * NavigableSets inherit the tests for filtered Iterables, Collections, Sets, and SortedSets. The
       * actual implementation tests are further down.
       */
    
      public abstract static class AbstractFilteredIterableTest<C extends Iterable<Integer>>
          extends TestCase {
        abstract C createUnfiltered(Iterable<Integer> contents);
    
        abstract C filter(C elements, Predicate<? super Integer> predicate);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          if (!(sources instanceof Collection)) {
            // Infinite Iterables can cause problems here. Of course, it's true that most of the other
            // methods on this class also have potential problems with infinite  Iterables. But unlike
            // those, this method can cause issues even if the user is dealing with a (finite) slice()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeBasedTable.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterables.transform;
    import static com.google.common.collect.Iterators.mergeSorted;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Supplier;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

    import com.google.common.collect.ImmutableSortedMultiset;
    import com.google.common.collect.ImmutableSortedSet;
    import com.google.common.collect.ImmutableTable;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.LinkedHashMultimap;
    import com.google.common.collect.LinkedHashMultiset;
    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.Lists;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

        }
        return Ints.saturatedCast(size);
      }
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T extends @Nullable Object> Multiset<T> cast(Iterable<T> iterable) {
        return (Multiset<T>) iterable;
      }
    
      /**
       * Returns a copy of {@code multiset} as an {@link ImmutableMultiset} whose iteration order puts
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Multisets.java

        }
        return Ints.saturatedCast(size);
      }
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T extends @Nullable Object> Multiset<T> cast(Iterable<T> iterable) {
        return (Multiset<T>) iterable;
      }
    
      /**
       * Returns a copy of {@code multiset} as an {@link ImmutableMultiset} whose iteration order puts
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ListsTest.java

      private static final Iterable<Integer> SOME_ITERABLE = new SomeIterable();
    
      private static final class RemoveFirstFunction implements Function<String, String>, Serializable {
        @Override
        public String apply(String from) {
          return (from.length() == 0) ? from : from.substring(1);
        }
      }
    
      private static class SomeIterable implements Iterable<Integer>, Serializable {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ListsTest.java

      private static final Iterable<Integer> SOME_ITERABLE = new SomeIterable();
    
      private static final class RemoveFirstFunction implements Function<String, String>, Serializable {
        @Override
        public String apply(String from) {
          return (from.length() == 0) ? from : from.substring(1);
        }
      }
    
      private static class SomeIterable implements Iterable<Integer>, Serializable {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Ordering.java

          Iterable<? extends Comparator<? super T>> comparators) {
        return new CompoundOrdering<>(comparators);
      }
    
      /**
       * Returns a new ordering which sorts iterables by comparing corresponding elements pairwise until
       * a nonzero result is found; imposes "dictionary order". If the end of one iterable is reached,
       * but not the other, the shorter iterable is considered to be less than the longer one. For
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Verify.java

          throw new VerifyException(lenientFormat(errorMessageTemplate, errorMessageArgs));
        }
        return reference;
      }
    
      // TODO(kevinb): consider <T> T verifySingleton(Iterable<T>) to take over for
      // Iterables.getOnlyElement()
    
      private Verify() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 17 14:07:47 UTC 2021
    - 18.5K bytes
    - Viewed (0)
Back to top