Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 52 of 52 for orElseGet (0.04 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                            .findFirst()
                            .map(project -> project.getBuild().getDirectory())
                            .map(Paths::get)
                            .orElseGet(() -> root.resolve("target"))
                            .resolve(PROJECT_LOCAL_REPO);
                } else {
                    return root.resolve("target").resolve(PROJECT_LOCAL_REPO);
                }
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Dec 15 11:20:38 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Optional.java

      /**
       * Returns the contained instance if it is present; {@code supplier.get()} otherwise.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is similar to Java 8's {@code
       * Optional.orElseGet}, except when {@code supplier} returns {@code null}. In this case this
       * method throws an exception, whereas the Java 8+ method returns the {@code null} to the caller.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top