Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 1,113 for optional (0.36 seconds)

  1. src/test/java/jcifs/smb/WinErrorTest.java

        private static Optional<String> lookupMessage(int code) {
            int[] codes = WinError.WINERR_CODES;
            String[] msgs = WinError.WINERR_MESSAGES;
            for (int i = 0; i < codes.length; i++) {
                if (codes[i] == code) {
                    return Optional.of(msgs[i]);
                }
            }
            return Optional.empty();
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

    `OAuth2PasswordRequestForm` is a class dependency that declares a form body with:
    
    * The `username`.
    * The `password`.
    * An optional `scope` field as a big string, composed of strings separated by spaces.
    * An optional `grant_type`.
    
    /// tip
    
    The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/GenericCIDetector.java

        public static final String NAME = "Generic";
    
        private static final String CI = "CI";
    
        @Override
        public Optional<CIInfo> detectCI() {
            String ciEnv = System.getenv(CI);
            if (ciEnv != null && !"false".equals(ciEnv)) {
                return Optional.of(new CIInfo() {
                    @Override
                    public String name() {
                        return NAME;
                    }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Apr 13 18:50:07 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. okhttp-testing-support/src/main/resources/META-INF/proguard/okhttp3.pro

    # OkHttp test platform rules uses optional classes.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 65 bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzer.java

        private static final Logger LOGGER = LoggerFactory.getLogger(DefaultBuildResumptionAnalyzer.class);
    
        @Override
        public Optional<BuildResumptionData> determineBuildResumptionData(final MavenExecutionResult result) {
            if (!result.hasExceptions()) {
                return Optional.empty();
            }
    
            List<MavenProject> sortedProjects = result.getTopologicallySortedProjects();
    
            boolean hasNoSuccess =
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/body-updates.md

    Notice that the input model is still validated.
    
    So, if you want to receive partial updates that can omit all the attributes, you need to have a model with all the attributes marked as optional (with default values or `None`).
    
    To distinguish from the models with all optional values for **updates** and models with required values for **creation**, you can use the ideas described in [Extra Models](extra-models.md).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/FluentIterable.java

      public final Optional<@NonNull E> first() {
        Iterator<E> iterator = getDelegate().iterator();
        return iterator.hasNext() ? Optional.of(iterator.next()) : Optional.absent();
      }
    
      /**
       * Returns an {@link Optional} containing the last element in this fluent iterable. If the
       * iterable is empty, {@code Optional.absent()} is returned. If the underlying {@code iterable} is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

      public final Optional<@NonNull E> first() {
        Iterator<E> iterator = getDelegate().iterator();
        return iterator.hasNext() ? Optional.of(iterator.next()) : Optional.absent();
      }
    
      /**
       * Returns an {@link Optional} containing the last element in this fluent iterable. If the
       * iterable is empty, {@code Optional.absent()} is returned. If the underlying {@code iterable} is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  9. tests/test_request_params/test_path/test_optional_list.py

    # Optional Path parameters are not supported...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Dec 11 16:15:36 GMT 2025
    - 45 bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/JavaUtil.java

    import java.util.List;
    import java.util.Optional;
    
    public class JavaUtil {
    
        /** A convenience method for getting java home for a version of java and requiring that version for the given task to execute */
        public static String getJavaHome(final int version) {
            List<JavaHome> javaHomes = BuildParams.getJavaVersions();
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.1K bytes
    - Click Count (0)
Back to Top