- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 186 for orElse (0.05 sec)
-
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
is NodeWithSimpleName<*> -> "${inferClassName(unit)}.${it.nameAsString}" else -> unit.primaryTypeName.orElse(file.name) } private fun inferClassName(unit: CompilationUnit) = "${unit.packageDeclaration.map { it.nameAsString }.orElse("")}.${unit.primaryTypeName.orElse("")}" private inline fun tryResolve(resolver: () -> String, or: () -> String) = try { resolver()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 12.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserInfoHelper.java
} } if (StringUtil.isNotBlank(userCode)) { updateUserSessionId(userCode); } return userCode; }).orElse(null); } protected String getUserCodeFromUserBean(final HttpServletRequest request) { final SessionManager sessionManager = ComponentUtil.getComponent(SessionManager.class);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/JobHelper.java
final Map<String, Object> params = new HashMap<>(); ComponentUtil.getComponent(ScheduledJobBhv.class).selectByPK(scheduledJob.getId()) .ifPresent(e -> params.put(Constants.SCHEDULED_JOB, e)).orElse(() -> { logger.warn("Job {} is not found.", scheduledJob.getId()); }); return params; }; findJobByUniqueOf(LaJobUnique.of(id)).ifPresent(job -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 8.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java
} catch (final Exception e) { throwValidationErrorApi(messages -> { messages.addErrorsFailedToStartJob(GLOBAL, entity.getName()); }); } }).orElse(() -> { throwValidationErrorApi(messages -> { messages.addErrorsFailedToStartJob(GLOBAL, id); }); }); return asJson(new ApiResponse().status(Status.OK).result());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/StopwordsService.java
return (List<StopwordsItem>) stopwordsList; }).orElse(Collections.emptyList()); } public OptionalEntity<StopwordsFile> getStopwordsFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(StopwordsFile.class::isInstance) .map(file -> OptionalEntity.of((StopwordsFile) file)).orElse(OptionalEntity.empty()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/SynonymService.java
return (List<SynonymItem>) synonymList; }).orElse(Collections.emptyList()); } public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(SynonymFile.class::isInstance) .map(file -> OptionalEntity.of((SynonymFile) file)).orElse(OptionalEntity.empty()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/FessApiAdminAction.java
@Override protected boolean isAccessAllowed() { try { return accessTokenService.getPermissions(request).map(permissions -> fessConfig.isApiAdminAccessAllowed(permissions)) .orElse(false); } catch (final InvalidAccessTokenException e) { if (logger.isDebugEnabled()) { logger.debug("Invalid access token.", e); } return false; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.4K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java
.filter(Expression::isLiteralStringValueExpr) .map(Expression::asLiteralStringValueExpr) .map(LiteralStringValueExpr::getValue) .orElse(null); getCurrentClass().getConstants().put(constName, value); }); } } private TypeMetaData extractTypeName(Type type) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:07:24 UTC 2024 - 11.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserAgentHelper.java
if (uaType == null) { uaType = UserAgentType.OTHER; } request.setAttribute(USER_AGENT_TYPE, uaType); } return uaType; }).orElse(UserAgentType.OTHER); } public enum UserAgentType { IE, FIREFOX, CHROME, SAFARI, OPERA, OTHER; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.2K bytes - Viewed (0)