Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 246 for orElse (0.44 seconds)

  1. src/main/java/jcifs/smb/MultiChannelManager.java

                case LEAST_CONNECTIONS:
                    return channels.stream()
                            .min((c1, c2) -> Integer.compare(c1.getActiveConnections(), c2.getActiveConnections()))
                            .orElse(channels.get(0));
    
                case RANDOM:
                    return channels.get((int) (Math.random() * channels.size()));
    
                case FAILOVER_ONLY:
                default:
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  2. 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);
            });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 23 23:57:26 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> showErrors() {
            if (commandLine.hasOption(CLIManager.SHOW_ERRORS) || verbose().orElse(false)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<String> failOnSeverity() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Oct 08 07:36:42 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

                if (logger.isDebugEnabled()) {
                    logger.debug("username={}", Arrays.toString(username));
                }
                return new SpnegoCredential(username[0]);
            }).orElse(null);
    
        }
    
        /**
         * SPNEGO filter configuration implementation.
         *
         * This inner class provides configuration parameters for the SPNEGO filter,
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:18:23 GMT 2026
    - 18.2K bytes
    - Click Count (3)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            // ----------------------------------------------------------------------
    
            Map<String, String> userSpecifiedProperties = context.options != null
                    ? new HashMap<>(context.options.userProperties().orElse(new HashMap<>()))
                    : new HashMap<>();
            createInterpolator().interpolate(userSpecifiedProperties, paths::get);
    
            // ----------------------------------------------------------------------
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

         * @return corresponding channel or null
         */
        public ChannelInfo getChannelForTransport(SmbTransport transport) {
            return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null);
        }
    
        /**
         * Remove a channel
         *
         * @param channel channel to remove
         */
        public void removeChannel(ChannelInfo channel) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .filter(artifact ->
                            Objects.equals(requestedRepositoryConflictId, ArtifactIdUtils.toVersionlessId(artifact)))
                    .findFirst()
                    .orElse(null);
        }
    
        /**
         * Determines whether the specified artifact refers to test classes.
         *
         * @param artifact The artifact to check, must not be {@code null}.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public ActionResponse list(final OptionalThing<String> id) {
            saveToken();
            return id.filter(StringUtil::isNotBlank).map(s -> asListHtml(decodePath(s))).orElse(redirect(getClass()));
        }
    
        /**
         * Uploads a file to the storage system.
         *
         * @param form the item form containing file and path information
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

                        CrawlingInfo crawlingInfo = crawlingInfoBhv.selectEntity(cb -> {
                            cb.query().setSessionId_Equal(sessionId);
                            cb.specify().columnSessionId();
                        }).orElse(null);//TODO
                        if (crawlingInfo == null) {
                            crawlingInfo = new CrawlingInfo();
                            crawlingInfo.setSessionId(list.get(0));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                builder.setQuery(QueryBuilders.idsQuery().addIds(id));
                builder.setFetchSource(fields, null);
                return true;
            }).orElse(null);
        }
    
        /**
         * Retrieves a list of documents whose IDs start with the specified prefix.
         *
         * @param searchEngineClient the search engine client to use for retrieval
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 26.1K bytes
    - Click Count (0)
Back to Top