Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for FluentIterable (0.07 sec)

  1. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * @deprecated instances of {@code FluentIterable} don't need to be converted to {@code
       *     FluentIterable}
       */
      @Deprecated
      @InlineMe(
          replacement = "checkNotNull(iterable)",
          staticImports = {"com.google.common.base.Preconditions.checkNotNull"})
      public static <E extends @Nullable Object> FluentIterable<E> from(FluentIterable<E> iterable) {
        return checkNotNull(iterable);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        FluentIterable<TimeUnit> unused = FluentIterable.from(TimeUnit.values()).append(SECONDS);
      }
    
      public void testFromArrayAndIteratorRemove() {
        FluentIterable<TimeUnit> units = FluentIterable.from(TimeUnit.values());
        assertThrows(UnsupportedOperationException.class, () -> removeIf(units, equalTo(SECONDS)));
      }
    
      public void testFrom() {
        assertEquals(
            ImmutableList.of(1, 2, 3, 4),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeTraverser.java

       * @deprecated Use {@link com.google.common.graph.Traverser#depthFirstPreOrder} instead, which has
       *     the same behavior.
       */
      @Deprecated
      public final FluentIterable<T> preOrderTraversal(final T root) {
        checkNotNull(root);
        return new FluentIterable<T>() {
          @Override
          public UnmodifiableIterator<T> iterator() {
            return preOrderIterator(root);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/OptionalTest.java

        assertThat(onlyPresent).containsExactly(2);
      }
    
      private static Optional<Integer> getSomeOptionalInt() {
        return Optional.of(1);
      }
    
      private static FluentIterable<? extends Number> getSomeNumbers() {
        return FluentIterable.from(ImmutableList.<Number>of());
      }
    
      /*
       * The following tests demonstrate the shortcomings of or() and test that the casting workaround
    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. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

     * b/310253115.
     */
    public class WriteReplaceOverridesTest extends TestCase {
      private static final ImmutableSet<String> GUAVA_PACKAGES =
          FluentIterable.of(
                  "base",
                  "cache",
                  "collect",
                  "escape",
                  "eventbus",
                  "graph",
                  "hash",
                  "html",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

     * b/310253115.
     */
    public class WriteReplaceOverridesTest extends TestCase {
      private static final ImmutableSet<String> GUAVA_PACKAGES =
          FluentIterable.of(
                  "base",
                  "cache",
                  "collect",
                  "escape",
                  "eventbus",
                  "graph",
                  "hash",
                  "html",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testConstants_areUnique() {
        assertThat(getConstants()).containsNoDuplicates();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static FluentIterable<Field> getConstantFields() {
        return FluentIterable.from(asList(MediaType.class.getDeclaredFields()))
            .filter(
                new Predicate<Field>() {
                  @Override
                  public boolean apply(Field input) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Optional.java

       *
       * <pre>{@code
       * Optional<Integer> optionalInt = getSomeOptionalInt();
       * Number value = optionalInt.or(0.5); // error
       *
       * FluentIterable<? extends Number> numbers = getSomeNumbers();
       * Optional<? extends Number> first = numbers.first();
       * Number value = first.or(0.5); // error
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Lists.java

       *
       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
       * ImmutableList#copyOf(Iterable)} instead. (Or, change {@code elements} to be a {@link
       * FluentIterable} and call {@code elements.toList()}.)
       *
       * <p><b>Note:</b> if {@code elements} is a {@link Collection}, you don't need this method. Use
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

    import static java.util.logging.Level.WARNING;
    
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.collect.FluentIterable;
    import com.google.common.collect.ImmutableList;
    import com.google.common.util.concurrent.ClosingFuture.Combiner.AsyncCombiningCallable;
    import com.google.common.util.concurrent.ClosingFuture.Combiner.CombiningCallable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
Back to top