Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for isPresent (0.15 sec)

  1. guava/src/com/google/common/base/Optional.java

      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
       * Returns the contained instance, which must be present. If the instance might be absent, use
       * {@link #or(Object)} or {@link #orNull} instead.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testIsPresent_yes() {
        assertTrue(Optional.of("training").isPresent());
      }
    
      public void testGet_absent() {
        Optional<String> optional = Optional.absent();
        try {
          optional.get();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testIsPresent_yes() {
        assertTrue(Optional.of("training").isPresent());
      }
    
      public void testGet_absent() {
        Optional<String> optional = Optional.absent();
        try {
          optional.get();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultDependencyCollector.java

            Collection<DependencyCoordinate> dependencies;
            Collection<DependencyCoordinate> managedDependencies;
            List<RemoteRepository> remoteRepositories;
            if (request.getProject().isPresent()) {
                Project project = request.getProject().get();
                rootArtifact = project.getPomArtifact();
                root = null;
                dependencies = project.getDependencies();
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 23:30:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/JobHelper.java

                        .ifPresent(e -> params.put(Constants.SCHEDULED_JOB, e)).orElse(() -> {
                            logger.warn("Job {} is not found.", scheduledJob.getId());
                        });
                return params;
            };
            findJobByUniqueOf(LaJobUnique.of(id)).ifPresent(job -> {
                if (!job.isUnscheduled()) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyCollector.java

            Collection<DependencyCoordinate> dependencies;
            Collection<DependencyCoordinate> managedDependencies;
            List<RemoteRepository> remoteRepositories;
            if (request.getProject().isPresent()) {
                Project project = request.getProject().get();
                rootArtifact = project.getPomArtifact();
                root = null;
                dependencies = project.getDependencies();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Optional.java

      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
       * Returns the contained instance, which must be present. If the instance might be absent, use
       * {@link #or(Object)} or {@link #orNull} instead.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

        //                                                                           =========
        protected boolean isLoginRequired() {
            if (fessConfig.isLoginRequired() && !fessLoginAssist.getSavedUserBean().isPresent()) {
                return true;
            }
            return false;
        }
    
        protected void buildFormParams(final SearchForm form) {
    
            final HttpSession session = request.getSession(false);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10K bytes
    - Viewed (0)
  9. 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);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            if (!(jApiCompatibility instanceof JApiMethod) || !((JApiMethod) jApiCompatibility).getOldMethod().isPresent()) {
                return Optional.empty();
            }
            JApiMethod jApiMethod = (JApiMethod) jApiCompatibility;
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top