Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 187 for ifPresent (0.37 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                        .setProcessPlugins(request.isProcessPlugins());
                ProjectBuildingResult res;
                if (request.getPath().isPresent()) {
                    Path path = request.getPath().get();
                    res = builder.build(path.toFile(), req);
                } else if (request.getSource().isPresent()) {
                    Source source = request.getSource().get();
                    ModelSource2 modelSource = new SourceWrapper(source);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Sep 13 09:44:11 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts

            }
        }
        manifest.attributes("Class-Path-Source" to "manifestClasspath")
        manifest.attributes("Class-Path" to classpath)
        if (app.mainClassName.isPresent) {
            manifest.attributes("Main-Class" to app.mainClassName)
        }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 21 18:38:28 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelper.java

            ArrayList<CIInfo> result = ServiceLoader.load(CIDetector.class).stream()
                    .map(ServiceLoader.Provider::get)
                    .map(CIDetector::detectCI)
                    .filter(Optional::isPresent)
                    .map(Optional::get)
                    .collect(Collectors.toCollection(ArrayList::new));
    
            if (result.size() > 1) {
                // remove generic
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

            assertNotNull(resolved);
            assertNotNull(resolved.getPath());
            Optional<Path> op = session.getArtifactPath(resolved);
            assertTrue(op.isPresent(), "Expected " + op + ".isPresent() to return true");
            assertEquals(resolved.getPath(), op.get());
        }
    
        @Test
        void testBuildProject() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt

                val androidStudioPath = studioInstallation.studioInstallLocation.asFile.get().absolutePath
                return "-Dstudio.home=$androidStudioPath"
            } else if (androidStudioHome.isPresent) {
                return "-Dstudio.home=${androidStudioHome.get()}"
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Feb 20 09:51:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Present.java

    @GwtCompatible
    final class Present<T> extends Optional<T> {
      private final T reference;
    
      Present(T reference) {
        this.reference = reference;
      }
    
      @Override
      public boolean isPresent() {
        return true;
      }
    
      @Override
      public T get() {
        return reference;
      }
    
      @Override
      public T or(T defaultValue) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteSource.java

       *
       * @throws IOException if an I/O error occurs
       * @since 15.0
       */
      public boolean isEmpty() throws IOException {
        Optional<Long> sizeIfKnown = sizeIfKnown();
        if (sizeIfKnown.isPresent()) {
          return sizeIfKnown.get() == 0L;
        }
        Closer closer = Closer.create();
        try {
          InputStream in = closer.register(openStream());
          return in.read() == -1;
        } catch (Throwable e) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Absent.java

      @SuppressWarnings("unchecked") // implementation is "fully variant"
      static <T> Optional<T> withType() {
        return (Optional<T>) INSTANCE;
      }
    
      private Absent() {}
    
      @Override
      public boolean isPresent() {
        return false;
      }
    
      @Override
      public T get() {
        throw new IllegalStateException("Optional.get() cannot be called on an absent value");
      }
    
      @Override
      public T or(T defaultValue) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/SinceAnnotationRule.java

        /**
         * Kotlin file-facade classes can't have kdoc comments.
         */
        private boolean isKotlinFileFacadeClass(JApiCompatibility member) {
            return member instanceof JApiClass && ((JApiClass) member).getNewClass().isPresent() && KotlinMetadataQueries.INSTANCE.isKotlinFileFacadeClass(((JApiClass) member).getNewClass().get());
        }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java

            this.components = components;
        }
    
        @Override
        public <T> T lookup(Class<T> type) {
            Optional<T> optional = lookupOptional(type);
            if (optional.isPresent()) {
                return optional.get();
            } else {
                throw new LookupException("No mapping for key: " + type.getName());
            }
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top