Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 187 for isPresent (0.05 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         * <p>
         * <strong>Implementation Note:</strong> The default implementation is equivalent to:
         * </p>
         * <pre>{@code
         * Optional<Path> configured = targetPath();
         * if (configured.isPresent() && configured.get().isAbsolute()) {
         *     return configured.get();
         * }
         * Path outputDir = project.getOutputDirectory(scope());
         * return configured.map(outputDir::resolve).orElse(outputDir);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/MoreObjects.java

            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof Optional) {
            return !((Optional) value).isPresent();
          } else if (value.getClass().isArray()) {
            return Array.getLength(value) == 0;
          }
          return false;
        }
    
        /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

            if (noOptionsSpecified || allOptionsDisabled) {
                return true;
            }
    
            // Check if --model is explicitly set (and not part of "all disabled" scenario)
            if (options.model().isPresent()) {
                return options.model().get();
            }
    
            return false;
        }
    
        @Override
        public String getDescription() {
            return "Applying Maven 4 compatibility fixes";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

                        entity.getCrawlingInfo().ifPresent(crawlingInfo -> {
                            addToList(list, crawlingInfo.getSessionId());
                            addToList(list, crawlingInfo.getCreatedTime());
                        });
                        // TODO
                        if (!entity.getCrawlingInfo().isPresent()) {
                            addToList(list, "");
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        LinkedHashSet<Class<?>> candidateClasses = new LinkedHashSet<>();
        for (Class<?> cls : classes) {
          Optional<String> testedClassName = TEST_SUFFIX.chop(cls.getName());
          if (testedClassName.isPresent()) {
            Class<?> testedClass = classMap.get(testedClassName.get());
            if (testedClass != null) {
              testClasses.put(testedClass, cls);
            }
          } else {
            candidateClasses.add(cls);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java

            boolean useAll = options.all().orElse(false);
            if (useAll) {
                return true;
            }
    
            // Check if --infer is explicitly set
            if (options.infer().isPresent()) {
                return options.infer().get();
            }
    
            // Apply default behavior: if no specific options are provided, enable --infer
            if (options.infer().isEmpty()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        LinkedHashSet<Class<?>> candidateClasses = new LinkedHashSet<>();
        for (Class<?> cls : classes) {
          Optional<String> testedClassName = TEST_SUFFIX.chop(cls.getName());
          if (testedClassName.isPresent()) {
            Class<?> testedClass = classMap.get(testedClassName.get());
            if (testedClass != null) {
              testClasses.put(testedClass, cls);
            }
          } else {
            candidateClasses.add(cls);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

      @Benchmark
      boolean getIfPresent(int repetitions) {
        boolean retVal = false;
        for (int i = 0; i < repetitions; ++i) {
          retVal &= Enums.getIfPresent(enumType, sampleData[i & 255]).isPresent();
        }
        return retVal;
      }
    
      private enum SmallEnum {
        X0,
        X1,
        X2
      }
    
      private enum MediumEnum {
        X0,
        X1,
        X2,
        X3,
        X4,
        X5,
        X6,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                                // 1. Child's phase start waits for parent's phase start
                                plan.step(p, BEFORE + n2).ifPresent(before::executeBefore);
                                // 2. Parent's phase completion waits for child's phase completion
                                plan.step(p, AFTER + n2).ifPresent(after::executeAfter);
                            });
                        }
                    });
                });
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 55.1K bytes
    - Viewed (0)
  10. cmd/common-main.go

    	}
    }
    
    // Initialize KMS global variable after valiadating and loading the configuration.
    // It depends on KMS env variables and global cli flags.
    func handleKMSConfig() {
    	present, err := kms.IsPresent()
    	if err != nil {
    		logger.Fatal(err, "Invalid KMS configuration specified")
    	}
    	if !present {
    		return
    	}
    
    	KMS, err := kms.Connect(GlobalContext, &kms.ConnectionOptions{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (3)
Back to top