Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for IsPresent (0.4 sec)

  1. 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)
  2. 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)
  3. 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)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java

         * if applicable.
         */
        default boolean effectiveVerbose() {
            return options().isPresent() && options().orElseThrow().verbose().orElse(false)
                    || ciInfo().isPresent() && ciInfo().orElseThrow().isVerbose();
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanCreatorTest.java

            }.writePlan(System.out::println, plan);
    
            plan.allSteps().forEach(phase -> {
                phase.predecessors.forEach(
                        pred -> assertTrue(plan.step(pred.project, pred.name).isPresent(), "Phase not present: " + pred));
            });
        }
    
        @Test
        void testAlias() {
            MavenProject p1 = new MavenProject();
            p1.setArtifactId("p1");
            p1.setCollectedProjects(List.of());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 28 15:21:19 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeStrategy.java

            boolean useAll = options.all().orElse(false);
            if (useAll) {
                return true;
            }
    
            // Check specific option
            if (specificOption.isPresent()) {
                return specificOption.get();
            }
    
            // Apply default behavior when no specific options are provided
            if (defaultWhenNoOptionsSpecified
                    && options.infer().isEmpty()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

            public String testDoUpgradeLogic(UpgradeContext context, String expectedTargetModel) {
                UpgradeOptions options = context.options();
                if (options.modelVersion().isPresent()) {
                    return options.modelVersion().get();
                } else if (options.all().orElse(false)) {
                    return "4.1.0";
                } else {
                    return "4.0.0";
                }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. 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)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PackagingProfileActivator.java

        }
    
        @Override
        public boolean presentInConfig(
                org.apache.maven.model.Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).isPresent();
        }
    
        private static boolean isPackaging(ProfileActivationContext context, String p) {
            String packaging = context.getUserProperties().get(ProfileActivationContext.PROPERTY_NAME_PACKAGING);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. 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)
Back to top