Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for optional (0.21 sec)

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

       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
      @SuppressWarnings("unchecked")
      public static <T> Collector<T, ?, Optional<T>> toOptional() {
        return (Collector) TO_OPTIONAL;
      }
    
      private static final Object NULL_PLACEHOLDER = new Object();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. .github/workflows/scorecard.yml

          - name: "Run analysis"
            uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
            with:
              results_file: results.sarif
              results_format: sarif
              # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
              # - you want to enable the Branch-Protection check on a *public* repository, or
              # - you are installing Scorecard on a *private* repository
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Optional;
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Collection;
    import java.util.Comparator;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      protected void afterDone() {}
    
      // TODO(b/114236866): Inherit doc from InternalFutureFailureAccess. Also, -link to its URL.
      /**
       * Usually returns {@code null} but, if this {@code Future} has failed, may <i>optionally</i>
       * return the cause of the failure. "Failure" means specifically "completed with an exception"; it
       * does not include "was cancelled." To be explicit: If this method returns a non-null value,
       * then:
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  5. README.md

        `@Deprecated` APIs will remain (again, unless they are `@Beta`). We have no
        plans to start removing things again, but officially, we're leaving our
        options open in case of surprises (like, say, a serious security problem).
    
    3.  Guava has one dependency that is needed for linkage at runtime:
        `com.google.guava:failureaccess:1.0.2`. It also has
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

       *
       * @since 11.0
       */
      public static <T> Optional<T> tryFind(Iterator<T> iterator, Predicate<? super T> predicate) {
        checkNotNull(iterator);
        checkNotNull(predicate);
        while (iterator.hasNext()) {
          T t = iterator.next();
          if (predicate.apply(t)) {
            return Optional.of(t);
          }
        }
        return Optional.absent();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top