Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 246 of 246 for orElse (0.04 seconds)

  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)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

                        }
                    }
                    return null;
                }
    
                return new ActionResponseCredential(() -> HtmlResponse.fromRedirectPathAsIs(getAuthUrl(request)));
            }).orElse(null);
        }
    
        /**
         * Generates the Entra ID authorization URL for the authentication request.
         * @param request The HTTP servlet request.
         * @return The authorization URL to redirect the user to.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
  3. build-logic/src/main/kotlin/BndBuildAction.kt

        // Symbolic name default logic
        task.archiveBaseName.zip(task.archiveClassifier) { baseName, classifier ->
          if (classifier.isNullOrEmpty()) baseName else "$baseName-$classifier"
        },
        task.archiveVersion.orElse("0").map { version ->
          MavenVersion.parseMavenString(version).osGiVersion.toString()
        },
        extension.bndfile,
        extension.bnd,
        task.project.layout,
        task.entryCompression,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Comparators.java

      }
    
      // For discussion of why this exists, see the Android flavor.
      private static <T> @Nullable T orElseNull(Optional<T> optional) {
        return optional.orElse(null);
      }
    
      /**
       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                if (request.getAttribute(LastaWebKey.USER_LOCALE_KEY) instanceof final Locale requestLocale) {
                    return requestLocale;
                }
                return request.getLocale();
            }).orElse(Locale.getDefault());
        }
    
        /**
         * Gets the language instruction based on the user's locale.
         *
         * @return the language instruction string, or empty string if locale is English
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Comparators.java

       * Animal Sniffer error, despite the @IgnoreJRERequirement annotation there. For details, see
       * ImmutableSortedMultiset.
       */
      private static <T> @Nullable T orElseNull(Optional<T> optional) {
        return optional.orElse(null);
      }
    
      /**
       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.5K bytes
    - Click Count (0)
Back to Top