Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for orElseThrow (0.04 sec)

  1. android/guava/src/com/google/common/base/Optional.java

     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
     *       OptionalLong} and {@code OptionalDouble}, the use of which is recommended; Guava does not
     *       have these.
     * </ul>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                MavenProject rootProject = session.getAllProjects().stream()
                        .filter(MavenProject::isExecutionRoot)
                        .findFirst()
                        .orElseThrow(() -> new IllegalStateException("No project in the session is execution root"));
    
                buildResumptionAnalyzer.determineBuildResumptionData(result).ifPresent(resumption -> {
                    try {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon May 05 16:58:52 UTC 2025
    - 28.7K bytes
    - Viewed (1)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(response1.body.string()).isEqualTo("ABC")
        val cacheEntry =
          fileSystem.allPaths
            .stream()
            .filter { e: Path -> e.name.endsWith(".0") }
            .findFirst()
            .orElseThrow { NoSuchElementException() }
        corruptCertificate(cacheEntry)
        val response2 = client.newCall(request).execute() // Not Cached!
        assertThat(response2.body.string()).isEqualTo("DEF")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
Back to top