Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 231 for orElse (0.28 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                        // could not parse expression
                        return null;
                }
            }
    
            if (value instanceof Optional<?> optional) {
                value = optional.orElse(null);
            }
            return value;
        }
    
        private static Object getMappedValue(
                final String expression, final int from, final int to, final Object value, final String key)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Streams.java

        // findLast(Stream) does some allocation, so we might as well box some more
        java.util.Optional<Integer> boxedLast = findLast(stream.boxed());
        return boxedLast.map(OptionalInt::of).orElse(OptionalInt.empty());
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalLong#empty} if the stream
       * is empty.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 36.4K bytes
    - Viewed (0)
  3. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

                return new ParserRequestImpl(
                        command,
                        commandName,
                        List.copyOf(args),
                        lookup.lookupOptional(Logger.class).orElse(logger),
                        messageBuilderFactory,
                        lookup,
                        cwd,
                        mavenHome,
                        userHome,
                        stdIn,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                        }
                        return rankFusionProcessor.search(query, params, userBean);
                    }).orElse(queryResponseList);
                }
            }
            return documentItems;
        }
    
        /**
         * Performs a scroll search for processing large result sets efficiently.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 36.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java

                        .filter(a -> phase.getId().equals(a.v3Phase()))
                        .findFirst()
                        .map(a -> a.v4Phase())
                        .orElse(phase.getId());
    
                List<MojoExecution> forkedExecutions = lifecycleMappings.get(phaseId);
    
                if (forkedExecutions != null) {
                    for (Execution execution : phase.getExecutions()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

                        throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToDeleteCrudTable(GLOBAL, buildThrowableMessage(e)));
                    }
                }).orElse(() -> {
                    throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id));
                });
            } catch (final Exception e) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                            });
    
                            writeJsonResponse(HttpServletResponse.SC_CREATED, escapeJsonKeyValue(RESULT_FIELD, "created"));
    
                        })
                        .orElse(() -> {
                            throw new WebApiException(HttpServletResponse.SC_NOT_FOUND, "Not found: " + docId);
                        });
    
            } catch (final WebApiException e) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 55.4K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

                    throwValidationError(messages -> messages.addErrorsFailedToDeleteFile(GLOBAL, form.fileName), this::asListHtml);
                }
            }).orElse(() -> {
                throwValidationError(messages -> messages.addErrorsTargetFileDoesNotExist(GLOBAL, form.fileName), this::asListHtml);
            });
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

                this.topLevelProject = projects.stream()
                        .filter(project -> project.isExecutionRoot())
                        .findFirst()
                        .orElse(first);
            } else {
                this.currentProject = new ThreadLocal<>();
                this.topLevelProject = null;
            }
            this.projects = projects;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/AdminAction.java

                if (actionClass != null) {
                    return actionClass;
                }
                return AdminDashboardAction.class;
            }).orElse(AdminDashboardAction.class));
        }
    
        /**
         * Get the admin action class.
         * @param user The user.
         * @return The admin action class.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top