Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for FluentIterable (0.09 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-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)
  4. android/guava/src/com/google/common/collect/Iterables.java

      public static <E> Iterable<E> unmodifiableIterable(ImmutableCollection<E> iterable) {
        return checkNotNull(iterable);
      }
    
      private static final class UnmodifiableIterable<T extends @Nullable Object>
          extends FluentIterable<T> {
        private final Iterable<? extends T> iterable;
    
        private UnmodifiableIterable(Iterable<? extends T> iterable) {
          this.iterable = iterable;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/reflect/ClassPath.java

        return FluentIterable.from(resources).filter(ClassInfo.class).toSet();
      }
    
      /**
       * Returns all top level classes loadable from the current class path. Note that "top-level-ness"
       * is determined heuristically by class name (see {@link ClassInfo#isTopLevel}).
       */
      public ImmutableSet<ClassInfo> getTopLevelClasses() {
        return FluentIterable.from(resources)
            .filter(ClassInfo.class)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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