Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for FluentIterable (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/collect/Ordering.java

    /**
     * A comparator, with additional methods to support common operations. This is an "enriched" version
     * of {@code Comparator} for pre-Java-8 users, in the same sense that {@link FluentIterable} is an
     * enriched {@link Iterable} for pre-Java-8 users.
     *
     * <h3>Three types of methods</h3>
     *
     * Like other fluent types, there are three types of methods present: methods for <i>acquiring</i>,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Ordering.java

    /**
     * A comparator, with additional methods to support common operations. This is an "enriched" version
     * of {@code Comparator} for pre-Java-8 users, in the same sense that {@link FluentIterable} is an
     * enriched {@link Iterable} for pre-Java-8 users.
     *
     * <h3>Three types of methods</h3>
     *
     * Like other fluent types, there are three types of methods present: methods for <i>acquiring</i>,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top